All of lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <CAFAAEC91CC8D511952000062938C6F12ECDC6@ozlan.fcdomain.net>]
* natting specific ports
@ 2002-12-13 17:48 Simpson, Doug
  2002-12-13 17:57 ` Ranjeet Shetye
  0 siblings, 1 reply; 4+ messages in thread
From: Simpson, Doug @ 2002-12-13 17:48 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

I want to "NAT" just specific ports to my Public IP.  Do the commands below
make sense?  I want my internal network to be able to telnet and send email.
(eth0 is my External NIC - it is exposed to the internet) 
iptables -t nat -A POSTROUTING -p tcp --sport 25 -o eth0 -s $INTERNAL_IP -j
SNAT --to $EXTERNAL_IP
iptables -t nat -A POSTROUTING -p tcp --sport 23 -o eth0 -s $INTERNAL_IP -j
SNAT --to $EXTERNAL_IP

Thank you,
Doug


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-13 20:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAFAAEC91CC8D511952000062938C6F12ECDC4@ozlan.fcdomain.net>
2002-12-13 19:34 ` natting specific ports Ranjeet Shetye
     [not found] <CAFAAEC91CC8D511952000062938C6F12ECDC6@ozlan.fcdomain.net>
2002-12-13 20:14 ` Ranjeet Shetye
2002-12-13 17:48 Simpson, Doug
2002-12-13 17:57 ` Ranjeet Shetye

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.