Displaying 2 results from an estimated 2 matches for "net_ext_ip2".
Did you mean:
net_ext_ip1
2005 Jan 18
2
failover works - but balancing does not
...nternal Subnet
NET_INT_SUB=/24
# Internal Network
NET_INT_NET=192.168.0.0
# First external interface
NET_EXT_INT1=eth0
# First external IP
NET_EXT_IP1=192.168.1.7
# First external interface''s gateway
NET_EXT_GW1=192.168.1.1
# Second external interface
NET_EXT_INT2=eth2
# Second external IP
NET_EXT_IP2=192.168.1.3
# Second external interface''s gateway
NET_EXT_GW2=192.168.1.1
echo "Flushing All Tables"
$IPTABLES -F
$IPTABLES -F -t nat
$IPTABLES -F -t mangle
$IPTABLES -X -t nat
$IPTABLES -X -t mangle
$IPTABLES -X
$IPTABLES -t mangle -N ETH0
$IPTABLES -t mangle -F ETH0
$IPTABLES...
2004 May 08
1
Dual Multipath DSL Script Problem!
...-j LOG --log-prefix " SPOOF_ETH1 "
iptables -t nat -A SPOOF_ETH1 -j SNAT --to-source $NET_EXT_IP1
iptables -t nat -N SPOOF_ETH2
iptables -t nat -F SPOOF_ETH2
iptables -t nat -A SPOOF_ETH2 -j LOG --log-prefix " SPOOF_ETH2 "
iptables -t nat -A SPOOF_ETH2 -j SNAT --to-source $NET_EXT_IP2
echo "Setting some local network rules..."
iptables -A INPUT -p icmp -s $NET_INT_NET/$NET_INT_SUB -d $NET_INT_IP -j ACCEPT
echo "Setting Mangle rules for eth1..."
iptables -t mangle -A OUTPUT -o ! $NET_INT_INT -m random --average 50 -j eth1
iptables -t mangle -A PREROUTING...