Results 1 to 4 of 4
hi there,
i want to make my linux server (FC to port forward to another server of mine (windows 2003), so basicaly whats comeing to server1 on port 84 to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-26-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 2
linux port forward problem
hi there,
i want to make my linux server (FC
to port forward to another server of mine (windows 2003), so basicaly whats comeing to server1 on port 84 to be forwarded to server2 on port 84
this is what i tryed on server1 but its not working:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -d server2 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth0 -p tcp -d server1 --dport 84 -j DNAT --to server2
Please advice
note: the servers are in diferent networks from diferent providers
Thanks
- 05-26-2009 #2
You just need to change the format of your DNAT statemnent.
Check this DNAT how-to out
- 05-27-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 2
i tryed
$iptables -t nat -A PREROUTING --dst $server1 -p tcp --dport 84 -j DNAT --to-destination $server2
$iptables -t nat -A OUTPUT --dst $server1 -p tcp --dport 84 -j DNAT --to-destination $server2
still not work
can someone explain me exactly what i need to put there to make it work?
thanks
- 05-27-2009 #4
They look good is the winbox setup to listen for port 84 connections?


Reply With Quote
