kern/95532: if_gif has artificial limitations
doconnor at gsoft.com.au
Sun Apr 9 07:00:32 UTC 2006
>Synopsis: if_gif has artificial limitations
>Arrival-Date: Sun Apr 09 07:00:30 GMT 2006
>Originator: Daniel O'Connor
>Release: FreeBSD 4.9-STABLE i386
System: FreeBSD metatron.gsoft.com.au 4.9-STABLE FreeBSD 4.9-STABLE #3: Fri Nov 28 12:06:51 CST 2003 doconnor at cain.gsoft.com.au:/usr/obj/usr/src/sys/METATRON i386
I have ADSL through the ISP Internode [Australia] and it uses a bridged ethernet configuration - this is pretty standard, however we also have a class C routed to our connection and that is done using an IP over IP tunnel (ie gif).
The thing is that if I configure gif like so..
gifconfig gif0 220.127.116.11 18.104.22.168
ifconfig gif0 up mtu 1452
route add default -iface gif0
all the machines on our LAN except the gateway itself work as expected. Howver the gateway doesn't work as when it makes outbound connections that aren't explicitly bound to an IP they go out with a from address of 0.0.0.0 which the ISP just drops (I presume).
I can configure gif0 like so..
ifconfig gif0 22.214.171.124/32 192.168.254.123 mtu 1452 up
(126.96.36.199/24 is our class C, and 188.8.131.52 is a spare IP - the routers normal IP is 184.108.40.206) everything works from including the gateway.
The 192.168.254.123 is a bogus address I had to use because gif won't accept only one address.. ie I would think this would be more correct..
ifconfig gif0 220.127.116.11/32 mtu 1452 up
Having a work around is OK but it would be nice to know if it's possible to fix (since I imagine the restriction on point to point interfaces is done in the network stack), if there are any other [better] work arounds, and if it is still a problem in 6.0.
More information about the freebsd-bugs