Re: forward/proxy/something one external IP to an other

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

 



On 9/26/2008 6:25 PM, Brian Austin - Standard Universal wrote:
I think like this...

iptables -t nat -A PREROUTING -d 192.168.19.253 -i eth19 -p tcp --dport 993 -j DNAT --to-destination 192.168.41.5:993

iptables -t nat -A  POSTROUTING -d 192.168.41.5 -j MASQUERADE

Yep, that's the idea.

You may also need to allow for the forwarded traffic in your filter:FORWARD chain, depending on how secure you have it.



Grant. . . .
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux