Linked Questions

7
votes
1answer
31k views

Iptables udp port forwarding [duplicate]

I'm using latest debian relese and i need to do some port forwarding, but i dont know how.I have 2 stream sources coming to my server on the same udp port from 2 diferent ip-s 192.168.1.2:1003 via ...
18
votes
3answers
57k views

How to set up port forwarding on Amazon EC2

I have a web application running on Amazon EC2. It listens on port 9898. I can access it by entering the ip address and port number. e.g 1.2.3.4:9898 However, what I'd really like to be able to do ...
2
votes
2answers
17k views

How to route UDP traffic from one public IP (linux) to another public IP(Windows)

I want to prevent direct access of my Windows Machine and want to expose some programs running on it via my Linux Machine (which again is accessible by a Public IP). Is there a way where-in I can ...
2
votes
2answers
3k views

IP-dependent local port-forwarding on Linux

I have configured my server's sshd to listen on a non-standard port 42. However, at work I am behind a firewall/proxy, which only allow outgoing connections to ports 21, 22, 80 and 443. Consequently, ...
3
votes
1answer
2k views

forward public port 81 to port 80 on local ip

i am new to serverfault, so please inform me of any bad behaviors :) i searched serverfault (and google) for an answer, but can't find the answer to my problem (i can find answers which are partially ...
0
votes
1answer
1k views

Connect by SSH to a certain device knowing public and private IP addresses? [closed]

I want to connect to a computer which is always on at home from anywhere. Suppose my router has the static public IP of 1.2.3.4 and a netmask of 255.255.255.0. As far as I'm concerned, every ...
1
vote
1answer
452 views

IPtables port forward

Scenario: Using DDwrt on a linksys router. I want to port forward a specific public IP address to internal IP 192.168.0.20 port 80 using IPtables. Not sure how to do this any help would be ...
0
votes
1answer
950 views

Configure squid to forward ftp requests to ftp server on some other machine

I have installed squid proxy servers and vsftpd FTP server on 2 separate VMs. How can I Configure squid proxy servers on machines-A (where squid installed)to forward ftp requests to machine-B (where ...
0
votes
1answer
867 views

How to only allow access to a given IP and port on a nat forwarding rule?

I'm using Rancher to manage a set of Docker containers. I'm trying to secure these containers with iptables, and have got as far as completely blocking all access to it and now have been unable to ...
1
vote
1answer
453 views

How to open iptables ports inside a cluster?

How can I use iptables to open ports 21001-22000 in a cluster, allowing the worker nodes to communicate between them and with the front-end? The cluster is configured with CentOS 6.3, Rocks 6.1 and ...
0
votes
1answer
412 views

IP Tables Port Forwarding

I have 4 servers behind a load balancer, but only 1 of them is running a particular service. I want three of them to forward requests to the fourth, based on the port. So, at present all 4 are running ...
0
votes
1answer
178 views

Forward port to address

I am trying to figure out how to map a specific address on a port on a different address. This might be very trivial, but I am not even sure how to ask Google. I have one machine running two servers: ...
0
votes
1answer
161 views

iptables 53 redirect to another port, not working

I am running DNS server on 8053 and HTTP server on 8080. I have 2 lines: iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080 iptables -A PREROUTING -t nat -p udp --dport 53 -...
0
votes
1answer
43 views

Forward ports from serverA to serverC via server B but allow serverB to communicate as a separated server

The following case: ServerA has no open ports. IP 1.1.1.1. It can see ServerB. ServerB has open ports 1000, 2000. IP 2.2.2.2. It can only see ServerC. ServerC has open ports 1000, 2000. IP 3.3.3.3. ...
0
votes
1answer
20 views

Redirect traffic from server on cloud to another machine on local host in VPN

I have a virtual server instance on a cloud with Ubuntu 18.04 running on it which has public ip 123.456.789.100 (dummy ip here). I installed OpenVPN server which has added private ip of virtual server ...