Skip to content

Commit

Permalink
Implementing Routing operation inside the OLSR router as described in…
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio Proto committed Aug 2, 2012
1 parent 35ccb7c commit cba0dcc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions package/ubnt-base-files/files/ninux
Expand Up @@ -28,5 +28,25 @@ elif [ -e /olsrd6.conf ]; then
olsrd -f /olsrd6.conf -d 0
fi

#Private routes to OLSR table
ip rule add to 10.0.0.0/8 table 111 pref 4
ip rule add to 172.16.0.0/12 table 111 pref 4
ip rule add to 192.168.0.0/16 table 111 pref 4

#Ninux IP Addresses to OLSR table
ip rule add to 176.62.53.0/24 table 111 pref 4
ip rule add from 176.62.53.0/24 table 111 pref 4

#Lookup default route first from user and then from OLSR
ip rule add from all lookup 254 pref 5
ip rule add from all lookup 112 pref 6

#Blackhole private aggregates
ip route add blackhole 10.0.0.0/8 table 111
ip route add blackhole 172.16.0.0/12 table 111
ip route add blackhole 192.168.0.0/16 table 111

#Blackhole Ninux aggregate
ip route add blackhole 176.62.53.0/24 table 111

) &
4 changes: 2 additions & 2 deletions package/ubnt-base-files/files/olsrd.conf
Expand Up @@ -4,8 +4,8 @@ IpVersion 4
Pollrate 0.025
FIBMetric "flat"

# RtTable 111
# RtTableDefault 112
RtTable 111
RtTableDefault 112

UseNiit no
SmartGateway no
Expand Down

0 comments on commit cba0dcc

Please sign in to comment.