Linked Questions
18 questions linked to/from How can I port forward with iptables?
7
votes
1
answer
43k
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 ...
20
votes
3
answers
78k
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 ...
3
votes
3
answers
20k
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
2
answers
4k
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
1
answer
3k
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
1
answer
3k
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 ...
0
votes
1
answer
1k
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 ...
1
vote
1
answer
509
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
1
answer
965
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
1
answer
511
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
1
answer
836
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
1
answer
525
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 ...
0
votes
0
answers
513
views
Forward web requests to another IP and port over VPN
I have the following setup
Web browser (192.168.5.10) ——> Home Ubuntu Server (192.168.5.15) ————->VPN over the internet———>to a public IP——> Work Server (192.168.6.90) ——-> Web ...
0
votes
1
answer
297
views
How to forward traffic through Linux box except requests to the box itself?
I have an Ubuntu box with IP forwarding enabled and a very simple iptables configuration to allow all packets from within the LAN to be forwarded:
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/...
0
votes
1
answer
421
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 ...