Netgate SG-1000 microFirewall

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - swix

Pages: [1]
Bonjour, hello,

I have some "Simple" IPv4 tunnels (IKEv1) to customers here, 3 are already running.  Our LAN:, WAN IP address 80.254.x.y.

Already working tunnels are having a Phase 2 setup similar to:
- Local network: LAN Subnet - NAT/BINAT:  Type Network, Address
- Remote Network:  Type Network , Address

I now have to add a new tunnel, but this time and for the first time the Remote Network Address is using public IP ranges.  Current phase 2 setup:
- Local Network:  WAN Subnet - no NAT/BINAT
- Remote Network:  Type Network, Address 159.16x.y.z/30

IPSEC connection status for Phase 1 and Phase 2 are fine, everything works as planed when testing from the router itself (when connected via ssh to the pfsense system, I can ping one remote target IP as 159.16x.y.7).  But the only issue is that I cannot access the target range 159.16x.y.z/30 from our LAN ( 

I tried changing the phase 2 settings, but with anything else the tunnel will not work.    And if I set "LAN subnet" as NAT/BINAT network, it seems to be ignored and will not be saved.
I also thought about adding a static route, but it's not possible to select a tunnel as a gateway.
So how could I route these packets to 159.16x.y.z/30 over the tunnel instead as directly over our gateway ? 

Any hint would be very welcome as I am not very experienced with ipsec topics.  Merci & kind regards, Olivier

I have a pfsense 2.1 setup (apu board) with openvpn installed mainly according to, working as expected.
WAN access occurs over DSL, single static IP address (80.254.y.z)
LAN network  is, internal LAN IP address of the pfsense router is
OpenVPN network   "Force all client generated traffic through the tunnel." active on both server and client, attributed IP here
OpenVPN Client terminal over cable network, with dynamic IP address 194.x.y.z. 

http://WAN_IP and https://WAN_IP accesses from any external IP are served via NAT by a server running internally under the IP
I have a test page under which simply returns the value of $_SERVER["REMOTE_HOST"].

My issue is the fifth line:
  • when accessing  from the LAN, it returns the IP of the client (another address) : ok
  • when accessing http://WAN_IP/ip.php  from outside (internet), it returns the real IP of the client : ok
  • when accessing http://WAN_IP/ip.php  from the LAN, it returns  (the IP of the router) :  still ok  (even if getting the real LAN IP address would be nice)
  • when accessing after activating the VPN client, the page returns from VPN range : ok
  • BUT when accessing http://WAN_IP/ip.php with active VPN, the page returns the real IP address of the client (194.x.y.z), and not 192.168.42.x as I would expect.

I tried to "fix" this by following,65793.msg359377.html  ("OpenVPN to IP Alias, NAT reflection not working")  or ("OpenVpn and NAT for same subnet"), but I failed until now, even if I guess it might be the right direction. What do you think ?

Any other suggestion would be more than welcome :)   Many thanks in advance & regards.

Pages: [1]