Setting up Plesk as proxy server for my browser - server

I have tried to find info on this, but can't seem to find what I am actually looking for.
I have a server running plesk. What I would like to do is set it up so that I can run my browser through that and have a static IP address. Is this possible and if so, any pointers on how to set this up?

I know that this is a few years old, but in case someone stumbles upon it. It's quite easy now with Onyx and Docker.
Create a new Docker instance with robhaswell/squid-authenticated.
Configure as follows:

Yes, you just need to install proxy server like squid or tinyproxy or 3proxy
Also as a more simpler but with more limitations you can create a domain and use one of PHP proxies like this one or this one
Don't forget about authentication.

Related

Sending out email from Linux VM instances

Old linux user here; but only recently started using Google Cloud solutions to create a few VM instances running CentOS. Works great and have been using them for a few years successfully.
I am adding some new functions and I would like to be able to get emails that normally go to root to be sent to me.
In the past, I simply added a line in /etc/aliases at the end of
root: myemail#gsuitedomain.com
This worked well as most of the boxes that I managed were inside a network where I also controlled the local mail server and could just send through it.
It appears that I need to setup some sort of relay using G-Suite?
Is that the right path?
Also, I really don't want to relay the email. I just want to send it to one of the G-Suite accounts. So, no real relaying needed.
Can someone direct me in the right direction for the easiest path to accomplish this?
Thank you for your help,
Tamer
GCP by default blocks all outbound traffic on port 25 so you have to use different one. You can read about it in more detail in the GCE documentation.
In my opinion you will have to run sendmail, postfix or anything else to send emails out but you have to configure them to some other port than 25.

Port Forwarding for Squid

I'm trying to setup a Squid server on a virtual machine, and there will be another machine which will be connecting to the internet via Squid server. The problem is I couldn't find out how to get traffic with Squid server. I've read that port-forwarding is the way to go, and searched for it. Still, no examples/answers about that matter. I've wrote the rules for Squid, and tested it. It's not catching the traffic, at any level. Anything will help me out of this.
Thanks in advance.
I wrote a post about this a number of years ago to do something very similar - you can read about it here: http://ashleyangell.com/2009/03/configuring-a-basic-reverse-proxy-in-squid-on-windows-website-accelerator/

Solution for Multidomain Email?

I'm using a custom root server to handle multiple domains on one IP. The basic OS is Debian and the WWW is done with: Nginx+MariaDB.
Now I'm trying to install any working non MySQL based Email service on it. I've watched several tutorials and googled the whole web for a solution.
My last attempt was to work with Postfix and Dovecot. The emails was kind of identified but getting the error:
<domain.org/info#mail.domain.com> (expanded from <info#domain.org>):
mail for mail.domain.com loops back to myself
Is there a step by step explanation for multidomain mail alias setting that is not running on any MySQL?
Do I need to run my virtual emails on MySQL?
Any Cpanel or Plesk like interface that could handle virtual Email aliases on non MySQL basis?
postfix can use mysql as a backend, but it's not required. Usually you can find tutorials on the net just using the db files.
no, you don't have to.
No idea. I usually do that stuff directly in the files or with a database backend.
This question might be better suited for serverfault, but it's pretty generic as it stands.

Jboss 5 listen on different ip addresses based on different URL path

We want to harden our Jboss server. We have a web application, and there are two types of resources in this web app
'https://myserver:8443/myapp/local/'
'https://myserver:8443/myapp/intranet/'
We only want the /myapp/local to be able to accessed from localhost 127.0.0.1 and the /myapp/intranet/ can be access from another address from internal network e.g. 192.168.12.12. Is there any way we can configure this? Thanks!
Tony
I found the answer myself. Hope this is helpful for someone who runs into this someday. Here is the solution
https://community.jboss.org/wiki/LimitAccessToCertainClients

Can I create a socket application on a hosting service?

I need to develop a server side application that opens sockets and manages communication with multiple clients. Previous answers have told me this is possible using a single script file, which loops forever.
Is this possible using only a PHP/Perl/Python hosting service? or would I need a VPS or shell access?
Any help is appreciated since I've never worked with sockets before. Thanks for your time.
Cheap Perl/PHP hosting services don't want you running your own long-running processes.
This means you will need a VPS (which obviously includes shell account since you can do anything you want on your private server). A few VPS providers might block outgoing IRC port but I think that is rare.
Linode and Slicehost/Rackspace are just two examples very very well run VPS service providers and I guarantee you can run your own socket application on them.
It would make your host very unhappy since their CPU time is valuable! If you use shared hosting, your host might just kick you out for such a solution! (Read your contract for the fine details.)
I think it could be possible but it depends on the setup of your host, plus the permissions your host are granting you. And most will be unhappy about anything that runs forever. (They prefer to see just short, simple applications.)
Usually the service firewall will block any unexpected ports, or if they are not doing it now they will start doing it after they figure out what you are doing and decide they don't like it.
I would say no because it involve too much security problems