Hi
Please help me I have a server with public ip and what I need is for users to connect from web through the ip and port: 7777 to another server in my internal network
I put this in iptables
iptables-t nat-A PREROUTING-i eth0-p tcp - dport 7777 j DNAT - to 192.168.0.2:7777
thank you very much for your help
Redirect Internal Port to server with public IP
-
- Posts: 2
- Joined: 2011/11/17 21:01:40
Redirect Internal Port to server with public IP
What is your question?
-
- Posts: 2
- Joined: 2011/11/17 21:01:40
Re: Redirect Internal Port to server with public IP
this line
iptables-t nat-A PREROUTING-i eth0-p tcp - dport 7777 j DNAT - to 192.168.0.2:7777
is not working
iptables-t nat-A PREROUTING-i eth0-p tcp - dport 7777 j DNAT - to 192.168.0.2:7777
is not working
Re: Redirect Internal Port to server with public IP
"Not working" is terribly ambiguous.
Surely the typos are only in your posts?
[code]iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 7777 -j DNAT --to-destination 192.168.0.2[/code]
Or perhaps it is the fact that after routing the packets enter
the FORWARD chain of filter table and must pass it too?
Surely the typos are only in your posts?
[code]iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 7777 -j DNAT --to-destination 192.168.0.2[/code]
Or perhaps it is the fact that after routing the packets enter
the FORWARD chain of filter table and must pass it too?