Re: CONFIG_IP_ROUTE_FWMARK not working in Debian !
From: Nelson Castillo (nelsoneci_at_gmail.com)
Date: 10/10/05
- Previous message: supermega: "CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- In reply to: supermega: "CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- Next in thread: supermega: "Re: CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- Reply: supermega: "Re: CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- Reply: Mariusz Kruk: "Re: CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 9 Oct 2005 19:12:44 -0500 To: supermega <tomek@heh.pl>
> # iptables -t mangle -A PREROUTING -s <LAN_IP> -j MARK --set-mark 5
I guess you should use the conntrack module. I'm not sure,
but I think you're marking only the first packet of the
connection.
I have something like this to mark them (different scenario... a load balancer
with 2 uplink providers):
iptables -t mangle -A PREROUTING -m conntrack --ctorigdst $IP1 \
-p tcp -m tcp --dport 110 -j MARK --set-mark 1
> and I route them via ISP2
> # ip rule add fwmark 5 table isp2
> Does anyone have CONFIG_IP_ROUTE_FWMARK working in debian?
I do.
"ip rule add fwmark 1 table T1" works for me. Default sarge kernel.
-- Homepage : http://geocities.com/arhuaco The first principle is that you must not fool yourself and you are the easiest person to fool. -- Richard Feynman.
- Previous message: supermega: "CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- In reply to: supermega: "CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- Next in thread: supermega: "Re: CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- Reply: supermega: "Re: CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- Reply: Mariusz Kruk: "Re: CONFIG_IP_ROUTE_FWMARK not working in Debian !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|