Displaying 3 results from an estimated 3 matches for "eth1_gw".
2004 Jul 26
1
iptables marking problems and ip route not working
...forwarding:
# grep ip_forward /etc/sysctl.conf
net.ipv4.ip_forward = 1
The iptables, ip rule and ip route statements are lifted right out of the docs:
#iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 80 -j MARK --set-mark
1
#ip rule add fwmark 0x1 table www.out
#ip route add default via $ETH1_GW dev eth1 table www.out
And logging for the heck of it:
#iptables -t mangle -A PREROUTING -m mark --mark 1 -j LOG --log-level DEBUG
--log-prefix "fwmark 1:"
Yet nothing seams to work and nothing is logging. It almost looks like
iptables is not marking the packets correctly? What do I...
2005 Jun 29
3
DHCP assigned gateway in /etc/shorewall/providers?
Is there a way to specify a variable for the gateway in
/etc/shorewall/providers? I have in my scenario:
eth0 dsl (static IP)
eth1 cable (dhcp assigned IP)
eth2 lan1
Is it possible to specify the gateway as a variable based on the current
DHCP lease (like $eth0_gw)? I''m following the documentation at
http://www.shorewall.net/Shorewall_and_Routing.html.
-Scott
2006 Feb 20
2
question about traffic control
Hi,
I have the following situation:
1 gateway box with 2 WAN interfaces (eth1 and eth2).
1 LAN interface eth0
default gateway is eth2
I want to route all traffic with destination protocol tcp 22 (ssh) NOT
over the default gateway eth2 but force them to find it''s route over
eth1.
All other traffic must go the normal way over eth2.
Is this possible with tc or an other tool?
--