[LARTC] iptables port forward

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello, quick question: i want to port forward those that enter at x:80 to internal address y:7865, how can i do that
with iptables? 

iptables -t nat -I PREROUTING 4 -i eth0 -d x -p tcp --dport 80 -j DNAT --to y   when/how do i specify port 7865?


thank you,
tomas bonnedahl


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux