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
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
/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
# 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.