All of lore.kernel.org
 help / color / mirror / Atom feed
From: bert hubert <ahu@ds9a.nl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] policy routing
Date: Sat, 24 Mar 2001 21:33:23 +0000	[thread overview]
Message-ID: <marc-lartc-98546970401084@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98509121616631@msgid-missing>

On Tue, Mar 20, 2001 at 12:26:00PM +0000, Gregory OSINAIKE wrote:
> Hello,
> 
> I'm trying to route packets based on 'mark' numbers i give to packets
> according to their port number using iptables. I'm having real trouble
> setting up routes based on this. I'm issuing the following commands
> assuming i have marked packets of a certain type with a 1:
> 
> 
> echo 201 first.table >> /etc/iproute2/rt_tables
> 
> ip rule add fwmark 1 table first.table
>  
> ip route add 30.0.0.0/8 dev eth0 table first.table
> 
> Basically its just like the exampls in the How To. I have to use Linux
> kernel v-2.3.99-pre7, so am using iptables 1.0.0.
> 
> when i attempt to mark ICMP packets i get 'network unreachable' when i
> ping another machine on our testbed which is not on the same subnet i.e
> not 30.0.0.x

You also need to define a default gateway for marked packets then, I think.

Regards,

bert

-- 
http://www.PowerDNS.com      Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

  reply	other threads:[~2001-03-24 21:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-20 12:26 [LARTC] policy routing Gregory OSINAIKE
2001-03-24 21:33 ` bert hubert [this message]
2001-12-06 19:13 ` Fabian Gervan
2001-12-06 19:18 ` bert hubert
2002-08-07 13:16 ` Stefan Kaiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-98546970401084@msgid-missing \
    --to=ahu@ds9a.nl \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.