[8.161][BUG][FIXED] routes are sometimes not set correct

Hi there,

sometimes the routes didn't get set when a ipsec tunnel is restarted.

have a look at the picture and at the output from netstat -rn:



firewall:/root # netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.20.10.0      0.0.0.0         255.255.255.0   U         0 0          0 eth0
10.20.11.0      0.0.0.0         255.255.255.0   U         0 0          0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
172.28.101.0    0.0.0.0         255.255.255.0   U         0 0          0 eth3
195.71.0.0      10.20.11.1      255.255.0.0     UG        0 0          0 eth1
firewall:/root #


the routes on the firewall are missing, thats why i can't reach the remotenetwork from the firewall!

Robert
Parents
  • and this is the output after i restarted ipsec manually:


    firewall:/root # netstat -rn
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    10.2.0.0        0.0.0.0         255.255.0.0     U         0 0          0 eth2
    10.10.0.0       0.0.0.0         255.255.0.0     U         0 0          0 eth2
    10.20.10.0      0.0.0.0         255.255.255.0   U         0 0          0 eth0
    10.20.11.0      0.0.0.0         255.255.255.0   U         0 0          0 eth1
    10.123.0.0      0.0.0.0         255.255.0.0     U         0 0          0 eth2
    10.222.0.0      0.0.0.0         255.255.0.0     U         0 0          0 eth2
    127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
    172.28.101.0    0.0.0.0         255.255.255.0   U         0 0          0 eth3
    195.71.0.0      10.20.11.1      255.255.0.0     UG        0 0          0 eth1
    firewall:/root #


    as you see, some more routes ...
  • Could be that another subsystem deletes the routes. When you turn on the "control" debug level for IPsec you can see what the updown script does to the routing table (and other stuff). Just grep for "updown" in ipsec.log. Please report your findings.
Reply Children
No Data