Menu

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.

Show posts Menu

Messages - olest

#61
19.1 Legacy Series / Re: NAT before IPSEC - Bug??
May 24, 2019, 10:28:50 PM
Not the same setup (I don't have any of the routers behind NAT) but same problem.

If I change Phase 1 Identifiers to use IP address instead of Distinguished name the NAT before IPSEC is working.

Why does it not work if I use other than IP address as my identifier/peer identifier?
#62
19.1 Legacy Series / Re: NAT before IPSEC - Bug??
May 24, 2019, 09:31:06 PM
Remote gateway is an IP address.
Identifiers is "Distinguished name"
#63
19.1 Legacy Series / Re: NAT before IPSEC - Bug??
May 24, 2019, 09:20:51 PM
Only SPDs with 192.168.11.0/24 I see is:
192.168.11.0/24  10.222.15.0/24
10.222.15.0/24    192.168.11.0/24

Should there not be any entry for the manual SPD?
#64
19.1 Legacy Series / Re: NAT before IPSEC - Bug??
May 24, 2019, 09:15:26 PM
Not sure what you mean or what you what me to test.

Quote from: franco on May 24, 2019, 09:04:17 PM
Consider me amazed if this is not VTI and pfSense works but you're using ping without -S parameter which would indicate the opposite.

IPsec (non-VTI) needs -S for the source address and IPsec said source address to accept traffic into the tunnel. Always.

# ping 192.168.77.1
PING 192.168.77.1 (192.168.77.1): 56 data bytes
^C
--- 192.168.77.1 ping statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss
# ping -S 10.0.0.1 192.168.77.1
PING 192.168.77.1 (192.168.77.1) from 10.0.0.1: 56 data bytes
64 bytes from 192.168.77.1: icmp_seq=1 ttl=255 time=56.350 ms
64 bytes from 192.168.77.1: icmp_seq=2 ttl=255 time=48.087 ms

IPsec from 10.0.0.1 -> 192.16.77.1


Cheers,
Franco
#65
19.1 Legacy Series / Re: NAT before IPSEC - Bug??
May 24, 2019, 08:58:49 PM
tcpdump at LAN interface igb1 I get:
20:57:51.045693 IP 192.168.17.101 > 192.168.11.244: ICMP echo request, id 1, seq 36150, length 40
#66
19.1 Legacy Series / Re: NAT before IPSEC - Bug??
May 24, 2019, 08:56:42 PM
I get nothing when I use "tdpdump -i enc0" and ping 192.168.11.244.

(tested with other tunnels with no NAT and the I see the trafic with tcpdump)
#67
19.1 Legacy Series / Re: NAT before IPSEC - Bug??
May 24, 2019, 12:45:54 PM
LAN network: 192.168.17.0/24
OPNsense 19.1.7 - could it be kernel changes since 19.1.4?

IPSEC Phase 2 (tunnel up):
local network 10.222.15.0/24
remote network: 192.168.11.0/24
Manual SPD: 192.168.17.0/24

NAT 1:1:
Interface IPSEC
Type: BINAT
External network: 10.222.15.0/24
Source: 192.168.17.0/24
Destination: 192.168.11.0/24

Firewall:
Default LAN allow all rule.

I cannot ping 192.168.11.244 from 192.168.17.101 using the OPNsense firewall.

--
With pfSense I use:
Phase 2:
local network: 192.168.17.0/24
BINAT translation: 10.222.15.0/24
remote network: 192.168.11.0/24
#68
19.1 Legacy Series / NAT before IPSEC - Bug??
May 24, 2019, 11:18:54 AM
Hi,

I have tried to setup NAT before IPSEC.

Followed this how to doc:
https://docs.opnsense.org/manual/how-tos/ipsec-s2s-binat.html

Is it not working with 19.1?

I havn't tried with 18.7.

(tested with a pfSense instead of my opnsense box and then it is working)
#69
Thank you - it worked.
#70
After 19.1.8 update the log files views show the same text in both Date and Message fields.

Modify: It is all the logs, not only IPSEC log.
#71
19.1 Legacy Series / IPSEC BINAT problem
May 06, 2019, 05:11:50 PM
Hi,

I'm trying to replace a pfSense with OPNsense, but I cannot get IPSEC BINAT to work.

At pfSense I have this:
https://www.dropbox.com/s/ppdunpmmqpsgdyy/2019-05-06_1705.png?dl=0

At OPNsense I have setup this:
https://www.dropbox.com/s/soatzy8z50vuzpb/2019-05-06_1708.png?dl=0
https://www.dropbox.com/s/4ab1i9rnz1k2y9k/2019-05-06_1709.png?dl=0
https://www.dropbox.com/s/3ux1wcranpjc0gt/2019-05-06_1710.png?dl=0

When I try to ping 192.168.11.245 from 192.168.17.101 I get no responce with OPNsense.

The OPNsense do not seems to create the manual SPD I have typed.

Anyone that can help?
#72
I know that I can create a second server on a different port. but I wanted to use the same server and a range that do not potential conflict if an other client get the same IP.
#73
18.7 Legacy Series / OpenVPN tunnel network static range
December 05, 2018, 12:23:37 PM
With OpenVPN access server there is both a tunnel network for dynamic clients and one for static clients.
How do I add a tunnel network for static clients to a OpenVPN server at OPNsense?

If I add a tunnel network outside server tunnel network with client specific overrides, the trafic is not routed correct.
#74
18.7 Legacy Series / Re: Multiple OpenVPN instances
December 05, 2018, 12:19:39 PM
ok, thank you.
#75
18.7 Legacy Series / Multiple OpenVPN instances
December 04, 2018, 04:07:11 PM
Hi,

Can I use the same server certificate for multiple OpenVPN instances?