Hot answers tagged

4

Damn it. I fixed it like a min after posting this. Solution: echo 1 > /proc/sys/net/ipv4/ip_forward


3

It would be like this: *nat :PREROUTING ACCEPT [0:0] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [3:353] :POSTROUTING ACCEPT [3:353] -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 COMMIT # Completed on Mon Jun 20 23:41:41 2016 Do you know how to do it the easy way? I assume you have disabled the firewalld and installed iptables-services because ...


2

To get this setup working, is it simply a case of asking the people who own the building to forward port 1194 to the ip address they have assigned our router? Yes.* Or is it potentially more complicated than that? No.* Also, if we want to remote desktop in to one of our pcs, is it just a case of getting them to forward port 3389 to our router ...


1

Add a nginx reverse proxy on the application machine with the following configuration for the default site: server { listen 3001; server_name _; auth_basic "Restricted Access"; auth_basic_user_file /etc/nginx/htpasswd.users; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; ...


1

You are redirecting all the tcp/80 traffic with your rule. In order to redirect only the traffic you want, you have to specify an interface or an ip address. For example, you could use instead: -A PREROUTING -i $MY_WAN_INTERFACE -p tcp --dport 80 -j REDIRECT --to-port 8080 Or, if you need to redirect some of your LAN traffic aswell, you could write: -A ...


1

You don't want to have multiple VirtualHost blocks with the same ServerName value. Instead you want to have a single VirtualHost block per ServerName and use either ProxyPass of RewriteRule to route the traffic to the appropriate backends. Here's an example using ProxyPass: <VirtualHost *:80> ServerName web.url.in ProxyPreserveHost On ...



Only top voted, non community-wiki answers of a minimum length are eligible