Skip to contentSkip to conversation

HELP--Is it posible to SNAT certain port--

DISCUSSION Julian Gomez 1 participant 1 message Sep 10, 2003 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

On Sat, May 24, 2003 at 07:40:58AM +0800, Ricky spoke thusly:

Quoted 7 lines

Is it posibles to MASQ only sertain port (eg. smtp) package? That I want to let users mail with another ADSL to keep my web server working smooth.

I mean, is this working?
iptables -t nat -A POSTROUTING -p tcp --dport 25 -o eth0 -j SNAT --to 1.2.3.4

Seems to work without issues for me.

Signature · 3 lines
The fact that the United States can label other countries as terrorist
states itself is quite remarkable because its not a secret that the United
States is incontrovertibly a terrorist state. -- Noam Chomsky