Half-Bridge PPPoA



  • I'm in New Zealand, where we only have PPPoA (no PPPoE), and I've been trying to get the Half-Bridge mode on my D-Link DSL-502T working with pfSense - but it doesn't seem to work. However, I've just tried m0n0wall and that seems to work out of the box. I checked the changelog for m0n0 and spotted that in release 1.22 (back in 2006) there was a fix for half-bridge modems:

    added DHCP/interface route fix for UK ADSL half-bridge modems
    (DSL-300T, X-modem) (mkasper)

    I suspect that this change may be why m0n0wall works for me. I'm not sure if this fix would be transferable to pfSense, but I've emailed Manuel (mkasper) to see if he can shed light on the change for me. Would anyone here be able to help with implementing a patch if I get something useful back from Manuel?



  • so your wan == public ip, modem == public ip.. right?

    not sure about single wan setups, but well half bridge don't seem to work for me in multi wan. i've posted and asked many times, but i don't seem well liked for some reason, nobody replies.



  • Can you post your system logs when you try to do this?

    Usually you have to setup and PPTP connection with PPPoA half-bridged.
    Try doing that and see if it goes anywhere.

    Please next time post logs and the output or /status.php here for helping us help you



  • i don't know what it is you need precisely ermal, but what ill say is this since anyway my pfsense box is down atm. ill first start by saying by connecting any "non-pfsense testpc" to the half-bridge modem, everything works just fine.

    so..
    my modem/router is set to half-bridge (mine's called ppp ip extension). it makes connection via pppoe/pppoa and gets a public ip.
    pfsense is set to dhcp and gets the correct public ip.

    i cannot ping anything except for what i've setup in static routes (in my case, i tested this for OPT1, but i did test for WAN which didn't work either). if i recall right, i can't even ping the half bridge modem lan ip. not even if i setup nat for the ip, and i shouldn't even need to do this.

    looking at pfsense gateway, i found the gateway to be the same as the public ip.

    in other words, if opt1 is the wan2 interface and connected to the half bridge modem.

    public ip == pfsense.opt1.ip == pfsense.opt1.gateway.ip

    i find that strange.

    ermal can you test and confirm if dhcp/half bridge works fine?



  • If the gatewawy and if ip are the same it will surely make you cannot connect to internet through that if.
    If you say others are working why you don't setup an pppoe in pfSense too rather than dhcp, which by itself has nothing to do with half bridge.

    ermal can you test and confirm if dhcp/half bridge works fine?

    I am sorry but you can go to the QA department for that :O



  • @biatche:

    i don't know what it is you need precisely ermal, but what ill say is this since anyway my pfsense box is down atm. ill first start by saying by connecting any "non-pfsense testpc" to the half-bridge modem, everything works just fine.

    so..
    my modem/router is set to half-bridge (mine's called ppp ip extension). it makes connection via pppoe/pppoa and gets a public ip.
    pfsense is set to dhcp and gets the correct public ip.

    If I get you right, basically, you have the DSL-502T setup to dial and authenticate with PPP then 'bridge' the DSL link to the ethernet interface?

    If so, just set the DSL-502 as a PPPoA bridge.  Connect the ethernet to pfSense WAN and set pfSense to use PPPoE on WAN interface and input the authentication information accordingly.

    There is no real reason to have to use the half-bridge mode unless you have a PC/ router directly connected that doesn't have a PPP dialer function and needs to rely on the 'modem' to do the DSL encapsulation and authentication while serving out the public IP directly to the PC.



  • The reason behind is, i have 2x adsl links to the same monopoly isp and hence, same gateway. so i can't use pppoe. Actually I'll use pppoe for one line, but as for the other, it has to be static/dhcp.

    I have tried the DMZ way but there are other issues, more modem related – small max no. of connections. I can't find a good modem router that can handle many connections. Now not knowing if its the same for half bridge, I thought i'd give it a try.

    In any case, why's the ip+gateway the same public_ip? Well testing on a win7 box, i am given the same public ip + gateway but it works.

    As for DMZ way, I can live with low max no of connections, but there's another problem again ... NAT doesn't work at all on OPT1. There was a thread on this, and not only me having this issue but it didn't get the attention it needed.

    So care to suggest what I should do?



  • No chance for multilink ppp?



  • no chance at all.

    am now waiting and hoping NAT on OPT# to get fixed.
    so yeah, i gave up on halfbridge + dhcp.. i hope someone can test and confirm if its working or not and why it works elsewhere.

    but yeah, no mlppp for sure. i intend to direct certain traffic to opt1, and bulk on the other so mlppp would do me no good. and again, mlppp isnt supported by my isp.

    thanks for replying though ermal.. hope all this will be looked into.



  • Hmm i might have the solution for you.
    Please try setting net.link.ether.inet.useloopback = 0 under system->advanced->tunables.
    Then retry your setup, with that it should work.


Log in to reply