yup.

##masq by ip
iptables -t nat -A POSTROUTING -s source.ip -o ppp0 -j MASQUERADE
##to a particular destination
iptables -t nat -A POSTROUTING -s source.ip -d destination.ip -j MASQUERADE
##to a particular destination and service
iptables -t nat -A POSTROUTING -p tcp -s source.ip -d destination.ip --dport port.no -j MASQUERADE

jess enerio wrote:
Gud day Pluggers, may question po ako regarding iptables' masquerading. Using the command below na-NAT ko pc's behind my linux box.

/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

But it also allows ALL access. Is it possible ba to masquerade via (1) ip, (2) port/service?
If so how po? What the exact command.

Thanks.
  
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to