2
votes
0answers
25 views

Port redirection for a specific (dynamic) IP using iptables script

What I want: Incoming TCP and UDP connections on port 900 from the resolving IP address of myip.dyndns.org (dynamic IP) should redirect to port 5050 on the local machine. All other IP addresses ...
0
votes
0answers
38 views

Routing with virtual interfaces

How do I setup Ubuntu Server (14.04.01) with public eth0 and private eth1 to act as a router for multiple public/private IP pairs. eth0: 200.0.0.2 eth0:1: 200.0.0.3 eth1: 192.168.0.1 ...
0
votes
0answers
44 views

Port Forwarding udp didn't work

the tcp forwarding work. My commands: sudo iptables -F sudo iptables -A FORWARD -j ACCEPT -p tcp --dport 3072 -d 10.42.0.84 -m state --state NEW sudo iptables -t nat -A PREROUTING -p tcp --dport ...
1
vote
0answers
140 views

Port forwarding out multiple VLAN interfaces that have same IP address

So I have an Ubuntu machine with multiple VLAN on an interface eth1 and each VLAN has the same IP address (172.16.0.2). I need to be able to simultaneously telnet into a rack of devices that are also ...
1
vote
1answer
655 views

Dnat prerouting does not work on Ubuntu 14.04

I've got a Ubuntu 14.04 server used as firewall, router, dhcp, dns and proxy. Everything works properly from inside to the internet, but the forwarding from outside to the inside network doesn't work. ...
1
vote
1answer
2k views

redirect port 80 to 8080 and make it work on local machine

I redirected traffic for port 80 to 8080 on my machine with sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 8080 It works fine for all world except my own machine. I am ...
0
votes
0answers
237 views

iptables udp portforwarding

I asked a question before a few days, but I forget to say I want to redirect udp ports. Sorry for that I send this question newly but it is important for me. The question is the same but only with udp ...
0
votes
1answer
609 views

Can't open a port

I need to run an app on my computer which connects to local port 49100. So everything runs on one computer. I tried adding rules to gufw, firestarter, manually: sudo iptables -A INPUT -p tcp --dport ...
3
votes
1answer
2k views

Error when doing port forwarding with iptables?

I've got a fairly standard ubuntu install and looking to add a port forward. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ...
4
votes
1answer
4k views

Port forward to a port on the same machine

I used to run a service on port 25570 I'm now changing it to run on port 25565 but I still want people who try to access it on the old port to have access to the service. So I'd like to forward port ...