Skip to contentSkip to conversation

Routing tables and netfilter

LARTC Riaan Annandale 3 participants 6 messages May 27, 2003

lore
Share & tools
lore
#0 lore raw

Hi Guys,

A couple of days ago I sent a mail here regarding routing browsing packets to a different gateway. Well here's an update which I believe will shed more light on the problem.

I am now marking all TCP and udp packets on a test box with a one.

I then route these packets via a routing table through an ISDN device.

If I delete this route I instantly get destination net unreachable from the client side (my linux box)

When I add it back in, it just sits and eventually times out.

If I do a tcpdump on the server that I am trying to telnet I can see that it's getting the packets that I send to establish the connection and is sending the SYN packets back, but yet my side still just sits. It almost appears that it doesn't work with MASQ.

Now before everyone starts nailing me about MASQ as per "IMPORTANT: We received a report that MASQ and SNAT at least collide with marking packets." and "Turn off the reverse path filter to make it work properly." - I have done that and I get the same results.

It appears that the packets are being dropped somewhere.

It feels like I am missing something really small and arb.

Any help would be appreciated

Signature · 21 lines
   Riaan Annandale
   Client Services: Corporate Support Engineer
   TISCALI (PTY) LTD
   THE COMMUNICATION COMPANY
   42 Wierda Road West, Wierda Valley, Sandton
   Mobile :
   Office :  +27 11 286 5014
   Fax :
   E-Mail : [email protected]
   http://www.tiscali.co.za
   Disclaimer: This email is considered a business record and is
   therefore property of Tiscali. This email, and any files transmitted
   with it are confidential and are intended solely for the use of the
   individual or entity to whom they are addressed. This communication
   represents the originator's personal views and opinions, which do not
   necessarily reflect those of Tiscali. If you are not the original
   recipient or the person responsible for delivering the email to the
   intended recipient, be advised that you have this email in error, and
   that any use, dissemination, forwarding, printing, or copying of this
   email is strictly prohibited. If you received this email in error,
   please immediately notify [email protected].
#1 lore raw

Sorry I made a typo :(

"and is sending the SYN packets back" - SYN should be ACK

Quoted 25 lines · Riaan Annandale

Hi Guys,

A couple of days ago I sent a mail here regarding routing browsing packets to a different gateway. Well here's an update which I believe will shed more light on the problem.

I am now marking all TCP and udp packets on a test box with a one.

I then route these packets via a routing table through an ISDN device.

If I delete this route I instantly get destination net unreachable from the client side (my linux box)

When I add it back in, it just sits and eventually times out.

If I do a tcpdump on the server that I am trying to telnet I can see that it's getting the packets that I send to establish the connection and is sending the SYN packets back, but yet my side still just sits. It almost appears that it doesn't work with MASQ.

Now before everyone starts nailing me about MASQ as per "IMPORTANT: We received a report that MASQ and SNAT at least collide with marking packets." and "Turn off the reverse path filter to make it work properly." - I have done that and I get the same results.

Quoted 28 lines

It appears that the packets are being dropped somewhere.

It feels like I am missing something really small and arb.

Any help would be appreciated

Signature · 21 lines
   Riaan Annandale
   Client Services: Corporate Support Engineer
   TISCALI (PTY) LTD
   THE COMMUNICATION COMPANY
   42 Wierda Road West, Wierda Valley, Sandton
   Mobile :
   Office :  +27 11 286 5014
   Fax :
   E-Mail : [email protected]
   http://www.tiscali.co.za
   Disclaimer: This email is considered a business record and is
   therefore property of Tiscali. This email, and any files transmitted
   with it are confidential and are intended solely for the use of the
   individual or entity to whom they are addressed. This communication
   represents the originator's personal views and opinions, which do not
   necessarily reflect those of Tiscali. If you are not the original
   recipient or the person responsible for delivering the email to the
   intended recipient, be advised that you have this email in error, and
   that any use, dissemination, forwarding, printing, or copying of this
   email is strictly prohibited. If you received this email in error,
   please immediately notify [email protected].

---end quoted text---

Signature · 21 lines
   Riaan Annandale
   Client Services: Corporate Support Engineer
   TISCALI (PTY) LTD
   THE COMMUNICATION COMPANY
   42 Wierda Road West, Wierda Valley, Sandton
   Mobile :
   Office :  +27 11 286 5014
   Fax :
   E-Mail : [email protected]
   http://www.tiscali.co.za
   Disclaimer: This email is considered a business record and is
   therefore property of Tiscali. This email, and any files transmitted
   with it are confidential and are intended solely for the use of the
   individual or entity to whom they are addressed. This communication
   represents the originator's personal views and opinions, which do not
   necessarily reflect those of Tiscali. If you are not the original
   recipient or the person responsible for delivering the email to the
   intended recipient, be advised that you have this email in error, and
   that any use, dissemination, forwarding, printing, or copying of this
   email is strictly prohibited. If you received this email in error,
   please immediately notify [email protected].
#2 lore raw
In reply to Riaan Annandale
Quoted 11 lines · Riaan Annandale

Disclaimer: This email is considered a business record and is therefore property of Tiscali. This email, and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Tiscali. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify [email protected].

I love receiving this stuff :-)

I think I must have received this email in error, since I'm on a public network and am *convinced* that your views represent those of Tiscali.

Reporting as ordered. :-)

Signature · 6 lines
Regards, Paul Evans


_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Riaan Annandale
Quoted 15 lines · Paul Evans

I love receiving this stuff :-)

I think I must have received this email in error, since I'm on a public network and am *convinced* that your views represent those of Tiscali.

Reporting as ordered. :-)

Signature · 6 lines
Regards, Paul Evans


_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

LOL

Signature · 11 lines
BSD ownz me
--

Daniel Ortiz
[email protected]

ILIMIT Comunicacions
Departament Sistemes
http://www.ilimit.es
Tel: (+34) 93 733 33 75
Fax: (+34) 93 733 32 43
#4 lore raw
In reply to Riaan Annandale

Yes yes, let's all have a good laugh.

Even perfect people do stoopid things some times ;)

Sorry guys, you'll see that I have now sorted the problem with a send-hook. But seriously now, I still need a solution to my problem

Quoted 14 lines · Daniel Ortiz

LOL

Signature · 11 lines
BSD ownz me
--

Daniel Ortiz
[email protected]

ILIMIT Comunicacions
Departament Sistemes
http://www.ilimit.es
Tel: (+34) 93 733 33 75
Fax: (+34) 93 733 32 43

---end quoted text---

Signature · 9 lines
Regards,

Riaan Annandale
Linux Systems Engineer (LPIC-1, CCNA)
0861 22 55 86
riaana at mundane dot co dot za
---------------------
Corrupt, adj.:
	In politics, holding an office of trust or profit.
#5 lore raw
In reply to Riaan Annandale

Howzit Guys,

I got the problem sorted,

I used the examples under "Routing for multiple uplinks/providers" to route stuff out the same interface that it comes and in, and voila!, bob's yer uncle!

I wonder if that might not be why the stuff mentioned below didn't work in the first place.

Well anyway, cheers!

Quoted 25 lines · Riaan Annandale

Hi Guys,

A couple of days ago I sent a mail here regarding routing browsing packets to a different gateway. Well here's an update which I believe will shed more light on the problem.

I am now marking all TCP and udp packets on a test box with a one.

I then route these packets via a routing table through an ISDN device.

If I delete this route I instantly get destination net unreachable from the client side (my linux box)

When I add it back in, it just sits and eventually times out.

If I do a tcpdump on the server that I am trying to telnet I can see that it's getting the packets that I send to establish the connection and is sending the SYN packets back, but yet my side still just sits. It almost appears that it doesn't work with MASQ.

Now before everyone starts nailing me about MASQ as per "IMPORTANT: We received a report that MASQ and SNAT at least collide with marking packets." and "Turn off the reverse path filter to make it work properly." - I have done that and I get the same results.

Quoted 5 lines

It appears that the packets are being dropped somewhere.

It feels like I am missing something really small and arb.

Any help would be appreciated

---end quoted text---

Signature · 10 lines
Regards,

Riaan Annandale
Linux Systems Engineer (LPIC-1, CCNA)
0861 22 55 86
riaana at mundane dot co dot za
---------------------
Angels we have heard on High
Tell us to go out and Buy.
		-- Tom Lehrer