From: "former03 | Baltasar Cevc" Date: Tue, 01 Aug 2006 09:54:17 +0000 Subject: [LARTC] IProute/conntrack issues Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi everybody, sorry for posting again, however I've moved the problem now ;-) After digging a bit deeper, I've successfully set up the routing as=20 such, it works for incoming as well as outgoing packets that take the=20 default route. Changing some of the routes using IP works as well. When I mark some outgoing packets in order to send them via another=20 route (the fast leased line instead of the slow DSL link), packets go=20 out there, the answer comes in, however, they never reach the internal=20 host, as far as I can track down the problem the connection tracking=20 does not recognize the answer as belonging to a known connection, so=20 that the reverse NAT will fail (we use SNAT on outgoing packets). Any help or hints are appreciated! Thanx, Baltasar Some more information: ### Routing looks like ofc:/home/bc# ip ru sh 0: from all lookup local 5001: from /29 lookup IQ 5002: from lookup DSL 6001: from all fwmark 0x1 lookup IQ 6002: from all fwmark 0x2 lookup DSL 32765: from all lookup main 32766: from all lookup OVERRIDEdefault 32767: from all lookup default ofc:/home/bc# ip ro sh table IQ default via dev eth0 ofc:/home/bc# ip ro sh table DSL default dev ppp0 scope link main contains local the link routes, OVERRIDEdefault has same contents=20 as DSL (default route via ppp0) Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source =20 destination 133 12567 ACCEPT all -- any any anywhere =20 priv172.net.hoster03.de/12 16 3560 ACCEPT all -- any any anywhere =20 priv192.net.hoster03.de/16 0 0 ACCEPT all -- any any anywhere =20 priv10.net.hoster03.de/8 0 0 MARK tcp -- any any anywhere =20 anywhere tcp dpt:www MARK set 0x1 ### excert from /proc/net/ip_conntrack tcp 6 38 SYN_RECV src=172.26.26.6 dst=3D sporte431=20 dport=80 packets=3D1 bytes` src=3D dst=3D sport=80 dporte431 packets=3D6 bytes60 mark=3D0 use=3D1 ### tcpdump excerpt of eth0 11:34:22.048909 IP (tos 0x0, ttl 63, id 64917, offset 0, flags [DF],=20 length: 60) .65431 > .www:=20 S [tcp sum ok] 2180804841:2180804841(0) win 65535 11:34:22.069640 IP (tos 0x0, ttl 50, id 0, offset 0, flags [DF],=20 length: 60) .www > .65431:=20 S [tcp sum ok] 3611549187:3611549187(0) ack 2180804842 win 5792 [there are more packets like the last as the other host apparently=20 tries to resend] [there are no packets on ppp0 at the time of the connection] -- Baltasar Cevc _____ former 03 gmbh _____ infanteriestra=DFe 19 haus 6 eg _____ D-80797 muenchen _____ http://www.former03.de _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc