need help about static routing and nat. when i apply static routing rules
on my linux gateway, packets destined for my public servers which is
connected to my other linux gateway are going fine however when i turned
on nat on my first gateway, packets destined to my public servers would
have to go around my first gateway->internet->public servers. here's my
iptables rule on my first gw:

iptables -t nat -A POSTROUTING -o eth1 -s 192.168.57.0/24 -d ! 203.177.3.2
-j SNAT --to 203.131.4.1

203.177.3.2  -  public servers ip
203.177.3.1  -  ip add of gw2 connected to isp2
192.168.57.2 -  2nd ip add of gw2
203.131.4.1  -  ip add of gw1 connected to isp1
192.168.57.1 -  2nd ip add of gw1

-- 
Sandy T. Santos <[EMAIL PROTECTED]>
Provincial Information Technology Office
Provincial Government of Bulacan

--
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