Hey guys.

Having a bit of a headache trying to get wireguard working properly through my pfsense router.

Configuration overview: VPS wireguard server set to forward all traffic from peers (it’s operating as a self-hosted VPN). I have a port on my router we’ll call OPT1 that I want to traffic all connections through wireguard to the VPN.

So far I have the VPS and pfsense connected successful through wireguard. They are making active handshakes and I can ping between them perfectly fine.

I followed the documentation, but my windows PC connected directly to OPT1 can’t access the internet. From the PC I can ping the DHCP server of OPT1 as well as the wireguard tunnel, but I can’t ping anything outside of that. I’m passing all traffic from OPT1 subnet to the wireguard interface in both OPT1 firewall rules and the wireguard interface rules.

I’m sure many of you have dealt with this configuration before. Does this issue sound familiar?

@brownmustardminion@lemmy.ml
creator
link
fedilink
English
27M

Problem solved. The firewall was attempting to pass traffic through the default gateway. You have to create a firewall rule to allow whatever traffic you want but in the advanced settings you need to select the wireguard gateway instead.

@just_another_person@lemmy.world
link
fedilink
English
1
edit-2
7M

On the “server” side, you need to allow packets to get forwarded from the wg interface to the “lab” side. Positive there are guides on this. If you enable firewall logs, you’ll see that packets are being discarded until you allow them to be forwarded between interfaces/networks.

Maybe search for a “hub and spoke” guide, which essentially what you are doing.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 20 users / day
  • 64 users / week
  • 206 users / month
  • 828 users / 6 months
  • 1 subscriber
  • 1.52K Posts
  • 8.65K Comments
  • Modlog