Help understanding - Will this work



  • Hi,

    I have an APU2C4

    I am playing around at the moment but need to see if this will work.

    MODEM - APU2C4  WAN
                                LAN1 - SWITCH - Unifi AP (using public IP)
                                OPT1 - SWITCH (Configured to use VPN Provider IP

    That way all wireless devices are via my ISP IP address and whatever is plugged into the OPT1 switch will be under the VPN providers IP



  • @4Qman:

    LAN1 - SWITCH - Unifi AP (using public IP)
    OPT1 - SWITCH (Configured to use VPN Provider IP

    Your description is misleading
    using public IP: use default gateway
    Configured to use VPN Provider IP: use gateway of VPN tunnel



  • @jahonix:

    @4Qman:

    LAN1 - SWITCH - Unifi AP (using public IP)
    OPT1 - SWITCH (Configured to use VPN Provider IP

    Your description is misleading
    using public IP: use default gateway
    Configured to use VPN Provider IP: use gateway of VPN tunnel

    thanks for the reply Jahonix,

    I have spent several more hours playing with this and i now have the VPN connection UP

    VPN UDP up Tue Jul 25 17:30:24 2017 20.5.5.244 116.282.192.78 5 KiB 5 KiB

    However when i connect the PC into the Switch it doesnt get a valid IP address.

    Issues found
    "Ethernet" doesn't have a valid IP configuration"Ethernet" doesn't have a valid IP configuration Not fixed Not Fixed

    The default gateway is not available The default gateway is not available


  • Rebel Alliance Global Moderator

    "Unifi AP (using public IP)"

    Huh??  How is that?  You mean your clients that connect to your wifi are natted to the public IP that is on pfsense wan?

    " OPT1 - SWITCH (Configured to use VPN Provider IP"

    This is misleading.  You mean the network you have setup on pfsense opt1 is set to go out pfsense vpn client connection?  What network did you setup on this opt1 interface?  You could then setup its rules to send all traffic out the vpn connection.



  • @johnpoz:

    "Unifi AP (using public IP)"

    Huh??  How is that?  You mean your clients that connect to your wifi are natted to the public IP that is on pfsense wan?

    " OPT1 - SWITCH (Configured to use VPN Provider IP"

    This is misleading.  You mean the network you have setup on pfsense opt1 is set to go out pfsense vpn client connection?  What network did you setup on this opt1 interface?  You could then setup its rules to send all traffic out the vpn connection.

    Hi Johnpoz, thanks for the reply.

    Huh??  How is that?  You mean your clients that connect to your wifi are natted to the public IP that is on pfsense wan?
    yes thats correct, this is working fine

    " OPT1 - SWITCH (Configured to use VPN Provider IP"
    When i check stats/openVPN it is showing connection is working.

    But when i plug my laptop into the switch thats on OPT1 it doesnt give me a valid IP address.
    OPT1 is setup as
    Static
    192.168.240.1 / 24


  • Rebel Alliance Global Moderator

    "But when i plug my laptop into the switch thats on OPT1 it doesnt give me a valid IP address."

    What does this have to do with vpn client connection on pfsense?

    Did you enable dhcp on your opt1 interface on pfsense?



  • @johnpoz:

    "But when i plug my laptop into the switch thats on OPT1 it doesnt give me a valid IP address."

    What does this have to do with vpn client connection on pfsense?

    Did you enable dhcp on your opt1 interface on pfsense?

    Hi, thank you for bearing with me on this.. I am learning :)

    I have followed this guide for OPT1
    https://airvpn.org/topic/17444-how-to-set-up-pfsense-23-for-airvpn/

    When i check system logs/gateways i get
    sendto error: 65

    I have OPT1 setup on static IP as per that guide. I have also changed it to DHCP with not luck.