View Single Post
  #3   (View Single Post)  
Old 17th June 2008
xiphias xiphias is offline
Port Guard
 
Join Date: May 2008
Posts: 31
Default

I have a ethernet ADSL (DLink 300T) modem that connects my router to the internet. I have a /29 block of IPs assigned to me by my ISP. I have configured my modem to route traffic for the 6 usable IPs to the router. The router is a normal PC running FreeBSD. The modem doesn't do any nat, just forwards the packets onto the router's public network card.

Anyway, assuming my public IP block is 123.123.123.208/29, then my router obtains the address 123.123.123.209/32 via dhcp. If I manually add aliases for 123.123.123.210/32, 123.123.123.211/32 and so on then everything works I can use pf to forward traffic from the different public IPs to different servers on my lan until the dhcp lease expires, then all the aliases are deleted and I'm left with only 123.123.123.209 assigned to the router's public network card.

The docs from the ISP say I should use dhcp to get the IP for the router, I've tried manually setting it and manually adding routing information but I can't get a workable connection to the internet unless I use dhcp
Reply With Quote