[LARTC] Problems with routes

2002-06-05 Thread Alexander Brill

Whenever I try to 'readd' a route I receive an error and I can't figure
out why...

# Add some routes
ip route add $EXT via $INT
ip route add prio 320 from $INT nat $EXT
# Delete them
ip route del from $INT nat $EXT
ip route del $EXT via $INT
# Add again
ip route add $EXT via $INT
ip route add prio 320 from $INT nat $EXT

The last command exits with exit-code '2' and the message:
RTNETLINK answers: Invalid argument

What am I doing wrong?

-- 
Alexander Brill [EMAIL PROTECTED]
http://www.project23.no
PGP-key: http://alexb.egil.org/key.pub



signature.asc
Description: This is a digitally signed message part


Re: [LARTC] Problems with routes

2002-06-05 Thread Julian Anastasov


Hello,

On 5 Jun 2002, Alexander Brill wrote:

 Whenever I try to 'readd' a route I receive an error and I can't figure
 out why...

 # Add some routes
 ip route add $EXT via $INT
 ip route add prio 320 from $INT nat $EXT

ip rule add prio 320 from $INT nat $EXT

 # Delete them
 ip route del from $INT nat $EXT

ip route del prio 320 from $INT nat $EXT

 ip route del $EXT via $INT
 # Add again
 ip route add $EXT via $INT
 ip route add prio 320 from $INT nat $EXT

ip rule add prio 320 from $INT nat $EXT

 The last command exits with exit-code '2' and the message:
 RTNETLINK answers: Invalid argument

May be not only the last one :)

 What am I doing wrong?

Use ip rules for SNAT and ip routes for DNAT

Regards

--
Julian Anastasov [EMAIL PROTECTED]

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/