OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Route all traffic through IPsec VPN
« previous next »
  • Print
Pages: [1]

Author Topic: Route all traffic through IPsec VPN  (Read 3948 times)

lambrusco

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Route all traffic through IPsec VPN
« on: January 12, 2018, 06:19:03 pm »
Hi all, I followed the How to guide for configuring an IPsec Road-Warrior VPN to connect my home network from outside and I'm now able to access my local network.

What I would like to do now is having the possibility to route all the internet traffic from my laptop trough my home connection.

I created the following firewall rules


And when I try to navigate I see in the logs that the rule is triggered


Despite the firewall rules working I cannot connect outside the LAN.

Those are the automatic generates NAT rules:


Does anyone has a suggestion on where it could be the issue?

Thanks!
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 1604
  • Karma: 167
    • View Profile
Re: Route all traffic through IPsec VPN
« Reply #1 on: January 12, 2018, 09:10:18 pm »
Does OPNsense hold your public IP on the WAN interface? If you use a private IP on the WAN side, you'll need to put a static route on your next (ISP) router for the tunnel network and any networks on the far side.

Bart...
Logged

lambrusco

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Route all traffic through IPsec VPN
« Reply #2 on: January 13, 2018, 09:06:46 pm »
Hi Bart,
thanks for the answer.

WAN interface has a local IP on a private network 192.168.100.0/24 but gets the public IP via PPPoE

here are my automatic routes (The obscured one is the public IP):
Logged

lambrusco

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Route all traffic through IPsec VPN
« Reply #3 on: January 24, 2018, 06:05:01 am »
Does anyone can help?
Thanks!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Route all traffic through IPsec VPN
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2