contact

Loading enum info ...

XS4ALL ADSL external IP on OpenBSD server

When I first got my xs4all adsl line, it shipped with a Thomson Speedtouch 510 modem.
I liked it, because this modem could be setup to give the external ip to my opendbsd box and all I had to do on my openbsd box was to assign this ip to an interface and all would run fine.

When this modem decided to die, I got a new one from xs4all.
The brandnew 716v with integrated voip and wifi.
This is where the trouble began.

It turned out it could be done. You loose the wifi part of the modem tho.
Here is how I did it.

Let the openbsd server request an ip from the router using DHCP.
As soon as it has one, you can choose "Assign public ip to a device"
Pick your openbsd box here.
Save and reboot your modem.

Now in openbsd setup the "external" interface.
Mine is rl0 and here is my setup:

/etc/hostname.rl0:
dhcp
!ifconfig $if 192.168.1.1
!route add default 192.168.1.254
!ifconfig $if description WAN

 

The !ifconfig and !route entries are needed because openbsd doesn't know how to route the packets.
Thing is you get an public ip on an interface that only has RFC internal gateway.

One last thing to take keep in mind: DON'T do blocking of all rfc networks on external interface in pf.
That will kill your default route.



 Feedback on this page or article:

This article has no feedback yet

 Give feedback:

To give feedback on this article, click here
Copyright (c) 2006-2008 Michiel van Baak.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU Free Documentation License".
< back | print | text | XS4ALL ADSL external IP on OpenBSD server