From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohammad Shakir Date: Sat, 10 May 2003 18:55:56 +0000 Subject: [LARTC] LARTC] 2 gateway on linux MIME-Version: 1 Content-Type: multipart/mixed; boundary="0-1008407244-1052592956=:63317" Message-Id: List-Id: To: lartc@vger.kernel.org --0-1008407244-1052592956=:63317 Content-Type: text/plain; charset=us-ascii Dear, I have setup two isp connection on ppp0 and ppp1 on Red Hat linux 7.3 now i want to route my all network request on both network. When I have single ppp0 connection I use this script /sbin/iptables --table nat --append POSTROUTING -s 192.168.0.1/24 --out-interface ppp0 -j MASQUERADE /sbin/iptables --append FORWARD --in-interface eth0 -j ACCEPT Now I have setup two interface for internet ppp0 and ppp1, now what should I change in my script. I am trying to use two dialup link for load sharing.Further -Martin advice me to add this line in my script /sbin/iptables -table nat --append POSTROUTING -s 192.168.0.1/24 --out-interface ppp1 -j MASQUERADEand# turn off reverse path filtering # echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter # echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter # echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter # echo 0 > /proc/sys/net/ipv4/conf/ppp0/rp_filter # echo 0 > /proc/sys/net/ipv4/conf/ppp1/rp_filter and he also advice me to read Nano-HOWTO, so anyone know from where I can find this document. thanks to Martin and others whose help me to solve this problem. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. --0-1008407244-1052592956=:63317 Content-Type: text/html; charset=us-ascii
Dear,
I have setup two isp connection on ppp0 and ppp1 on Red Hat linux 7.3 now i want to route my all network request on both network. When I
have single ppp0 connection I use this script
 
/sbin/iptables --table nat --append POSTROUTING -s 192.168.0.1/24 --out-interface ppp0 -j MASQUERADE
/sbin/iptables --append FORWARD --in-interface eth0 -j ACCEPT
 
Now I have setup two interface for internet ppp0 and ppp1, now what should I change in my script.
 
I am trying to use two dialup link for load sharing.
Further -Martin advice me to add this line in my script

/sbin/iptables -table nat --append POSTROUTING -s 192.168.0.1/24 --out-interface ppp1 -j MASQUERADE
and
# turn off reverse path filtering
# echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/ppp0/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/ppp1/rp_filter

and he also advice me to read Nano-HOWTO, so anyone know from where I can find this document.
 
thanks to Martin and others whose help me to solve this problem.

 


Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo. --0-1008407244-1052592956=:63317-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/