0
votes
0answers
25 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
92 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
380 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
509 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
236 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
574 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 ...
2
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 ...
3
votes
1answer
3k 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 ...