First some background: just why would you want to ditch your ADSL router and run PPP straight from the firewall?
Advantages:
- There's one less thing to go wrong, because there's one less router between you and your ISP.
- You don't waste a static IP address, because your first Internet-visible IP terminates on the firewall, not the router.
- If you want to adjust the services you publish to the Internet, you only have one device to reconfigure.
- You can use a cheaper ADSL modem instead of a pricey ADSL router. This can be quite a saving if you need something more sophisticated than basic NAT.
- For multi-WAN configurations, if the firewall runs both ADSL PPP sessions, then it may be easier to arrange automatic fail-over when one ADSL line fails, or goes down for two minutes to re-sync.
- If you want to support IPV4 + IPV6, there's probably more chance of getting everything working properly if there's just one key device to configure, not two.
- In the UK, most ADSL providers offer PPPoA (point-to-point protocol over ATM) which, through an ADSL router, delivers a full-size MTU of 1500 bytes. But if you switch to an ADSL modem/bridge delivering your traffic via Ethernet, then 8 bytes of each frame is lost due to PPP headers, so you end up with an MTU of 1492 bytes. This should not be a problem, except for some broken websites which suffer from the "pMTUd blackhole" problem. These misconfigured websites set the Don't Fragment bit on their outgoing IP frames, whilst simultaneously discarding any ICMP "Frag Needed but Don't Frag was Set" responses from routers which are unable to deliver large unfragmented frames across low-MTU links. As a workaround, pfSense automatically implements MSS Clamping on PPPoE interfaces, meaning that it fiddles with the TCP options field in SYN / SYN-ACK frames to ensure that the MSS isn't set higher than PPPoE can cope with. This is slightly dirty (the firewall is changing the packets passing through it) but it seems to work well enough.
- Some security people take the view that an Internet-facing security perimeter should have several devices, placed in series, each with an ACL (access control list) set up to filter incoming traffic. The converse view is that firewalling should be done at the firewall, and routers should be left alone to get on with routing.
At home, for some years I've been running a Cisco 877W ADSL router on the outside, with a dedicated pfSense firewall on the inside. pfSense is a free and easy-to-use open-source firewall software package, based on the rock-solid FreeBSD Unix operating system but with a user-friendly web-based management screen. pfSense will run on just about any Intel-based hardware, but I've chosen a diskless Soekris NET5501 low-energy rackmount server, purchased from the excellent KD85.com. Whilst Soekris computers are quite expensive, they use almost no electricity, so they probably pay for themselves if you run them 24*7 for a few years.
The Cisco router isn't really designed as a consumer-friendly device. Even for a network geek, it can be a bit of a pain to configure, and to maintain with security updates, even with a Cisco SmartNet contract. By contrast, the pfSense firewall is much simpler to update. You just save the configuration using your web browser, load the new firmware onto a fresh Compact Flash card, boot it up and restore the saved config from your web browser. In the event of problems, you just pop the old Compact Flash card back in.
So for now I've unplugged the Cisco router, and connected a cheap ADSL modem in Bridge mode. There are at least half a dozen UK ADSL modems that offer Bridge Mode, whereby your ADSL link still runs PPPoA, but this is presented to you as PPPoE. I've tested three of them. They are all nice and cheap compared to some of the fancier ADSL routers out there....
- D-Link DSL-320B. Summary: Best avoided unless the firmware improves. This is a small device offering one Ethernet port and one ADSL port. It runs from 9 volts AC. Annoyingly, even after flashing it to the latest UK firmware, I never did get it working in standard PPPoA mode (as an ADSL NAT router) though it did work with an Apple Mac in Bridged mode (as an ADSL modem). For bridged mode on UK BT 20CN ADSL2 lines, you must select "1483 Bridged IP LLC" mode, as shown in the picture below (click to enlarge). The whole experience didn't really inspire confidence, so I didn't bother testing it with pfSense. Rather disappointing, as I had expected better from D-Link.
- Draytek Vigor 120. Summary: works like a charm. This gadget is sold as a PPPoE ADSL modem, not as an router than can also be used as a modem. The vendor claims you can just plug it into your router/firewall and use it without any configuration at all. I took the time to assign a static IP address for management purposes: this isn't strictly necessary, but does facilitate statistics display:-
The management IP address does not need to be related in any way to the IP subnets used by the firewall. It's only there so that you can plug in a laptop and see what's going on with the ADSL link itself. The device is still acting only as a modem, not a router.
The only minor gripe I found with the Draytek is that the web management interface was needlessly confusing. The default status page shows "DISCONNECTED", which probably relates to routing being switched off. The status page marked "Online Status" (shown above) is what you want, but you can't always access that page because the web menu screen is buggy (and has a clashing colours making it hard to read). But refreshing the page usually makes the menu render properly, or you can just open the status page directly at /doc/online.sht.
In case it helps anyone... My system is in the UK, on a standard but rather faint BT 20CN ADSL line. My Draytek Vigor 120 arrived with the current v3.2.4.1 firmware but the modem code seemed to be out-of-date, so I updated it from the maker's website using the file v120_a4_v324 (modem code 332201) as this seemed to be the recommended modem code for the UK. It's been running flawlessly for 10 days now without re-syncing once, despite the high attenuation on my line, maintaining a good stable 11 dB SNR (with the BT end set for extra stable mode).
So far then, the Vigor 120 seems perfectly compatible with pfSense 1.2.3, and highly stable even on marginal BT ADSL limes. It also claims compatibility with all the new ADSL standards, so with a bit of luck it should still work when BT upgrade my local exchange to 21CN ADSL 2+, making it good value for the price.
- Billion BiPAC 5200. Summary: works pretty well, but tends to re-sync every few days on my noisy ADSL line. This again is a very small device. It offers one ADSL port and four Ethernet ports, and runs from 12 volts DC (which is handy because that's what all my Soekris servers and Netgear switches use - so in theory I could use a true battery backup circuit instead of a wasteful mains UPS).
The Billion device comes in two models: the 5200 and the 5200S. I went for the 5200, which has 4 Ethernet ports, whilst the slightly cheaper 5200S only has a single Ethernet port. Used in Bridged Mode, only one Ethernet port can carry Internet traffic (because everything's wrapped up inside PPP frames). However, the web management service remains active when Bridge Mode is used, so it may be useful to have more than one Ethernet port in case you want to monitor things like ADSL line conditions without disconnecting the PPP link.
For PPP over ADSL, we just need to go into Interfaces / WAN in the pfSense web GUI, and set it up as shown below (click image to enlarge):-
For PPP over ADSL, we just need to go into Interfaces / WAN in the pfSense web GUI, and set it up as shown below (click image to enlarge):-
At the top, you set "Type" to be "PPPoE". This means the interface doesn't have an IP address or Gateway, as everything should get set up automatically over Ethernet using PPP. You just need to fill in your ADSL ISP username and password lower down under "PPPoE Configuration". Then just hit the Save button at the bottom, wait a minute for pfSense to apply the changes, and the link should come up (assuming that you got the username and password correct).
If you have problems, the first thing to do is look at the pfSense log. However, this isn't very detailed, so it may help to configure pfSense to send your system log to another machine using the SYSLOG protocol on the LAN interface. See my blog post from earlier today, for details of how to configure a FreeBSD server to receive SYSLOG messages from a remote host.
Another debugging technique is to plug the pfSense firewall into the ADSL Ethernet modem via an Ethernet hub (not a switch!). Then plug a laptop into the Ethernet hub and run Wireshark to watch the packets going past.
Whilst we're just messing about testing stuff, if you have a recent Apple Mac to hand, you can plug that in instead of the pfSense box to control the PPP link. On the Mac, go to "System Preferences" - "Network", then press the "+" button at bottom left. In the pop-up box, for "Interface" choose "PPPoE" and for "Service Name" enter something like "IPV6 PPPoE Test". In the box that appears, leave the PPPoE service name blank, then enter your ADSL ISP account name and password. Under "Advanced", just make sure "Configure IPV4" is set to "Using PPP" whilst "Configure IPv6" is set to "Automatically". Save your settings and press the Connect button. Once the PPP link comes up, for IPV6 access you'll need to correct the IPV6 address and gateway, as outlined in my earlier post today (PPP over ADSL and PPP over dialup are pretty similar from the Mac's point of view). If the link doesn't seem to be working, once again you can run Wireshark to watch the PPP protocol start up over the Ethernet port.
My next step will probably be to switch from pfSense to Monowall, with a view to adding native IPV6 support to my networks. Another option would be to stick with IPv4 and pfSense, but add a second ADSL line for higher speed and redundancy. Apparently pfSense 2.0 alpha supports true WAN link aggregration, as does my ISP, aaisp.net.
UPDATE: Currently running Monowall 1.32 using PPP over ADSL with a Traverse Viking PCI ADSL card. This has given me native IPV6 over ADSL for the first time, thanks to my ISP, www.aaisp.net .



