Hi Team,
Ive applied some new firewall rules to lockdown the network. After applying the firewall rules everything works that need to work except IPSEC tunnels are not building up. When removing the firewall rules IPSEC works. So I am doing something wrong with the rules set. I hope someone can point out what Iam doing wrong here:
Show version
Version: VyOS 1.4.0-rc3
Release train: sagitta
Built by: Sentrium S.L.
Built on: Thu 18 Jan 2024 19:21 UTC
Build UUID: 8603fe3e-29bd-4669-9427-cc07110bd272
Build commit ID: 651ff15892ade4
Architecture: x86_64
Boot via: installed image
System type: KVM guest
Hardware vendor: QEMU
Hardware model: Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID: b34fc4a3-c61e-45e1-9dd7-c0e85290f316
Copyright: VyOS maintainers and contributors
Firewall rules
set firewall global-options all-ping âenableâ
set firewall global-options broadcast-ping âdisableâ
set firewall global-options ip-src-route âdisableâ
set firewall global-options ipv6-receive-redirects âdisableâ
set firewall global-options ipv6-src-route âdisableâ
set firewall global-options log-martians âenableâ
set firewall global-options receive-redirects âdisableâ
set firewall global-options send-redirects âenableâ
set firewall global-options source-validation âdisableâ
set firewall global-options syn-cookies âenableâ
set firewall ipv4 forward filter default-action âacceptâ
set firewall ipv4 forward filter rule 1 action âjumpâ
set firewall ipv4 forward filter rule 1 inbound-interface name âeth0â
set firewall ipv4 forward filter rule 1 jump-target âWAN_INâ
set firewall ipv4 input filter default-action âacceptâ
set firewall ipv4 input filter rule 1 action âjumpâ
set firewall ipv4 input filter rule 1 inbound-interface name âeth0â
set firewall ipv4 input filter rule 1 jump-target âWAN_LOCALâ
set firewall ipv4 name WAN_IN default-action âdropâ
set firewall ipv4 name WAN_IN default-log
set firewall ipv4 name WAN_IN description âWAN TO INTERNALâ
set firewall ipv4 name WAN_IN rule 10 action âacceptâ
set firewall ipv4 name WAN_IN rule 10 description âALLOW ESTABLISHED/RELATEDâ
set firewall ipv4 name WAN_IN rule 10 state âestablishedâ
set firewall ipv4 name WAN_IN rule 10 state ârelatedâ
set firewall ipv4 name WAN_IN rule 20 action âdropâ
set firewall ipv4 name WAN_IN rule 20 description âDROP INVALID STATEâ
set firewall ipv4 name WAN_IN rule 20 state âinvalidâ
set firewall ipv4 name WAN_LOCAL default-action âdropâ
set firewall ipv4 name WAN_LOCAL default-log
set firewall ipv4 name WAN_LOCAL description âWAN_TO_ROUTERâ
set firewall ipv4 name WAN_LOCAL rule 10 action âacceptâ
set firewall ipv4 name WAN_LOCAL rule 10 description âALLOW ESTABLISHED/RELATEDâ
set firewall ipv4 name WAN_LOCAL rule 10 state âestablishedâ
set firewall ipv4 name WAN_LOCAL rule 10 state ârelatedâ
set firewall ipv4 name WAN_LOCAL rule 15 action âacceptâ
set firewall ipv4 name WAN_LOCAL rule 15 description âALLOW_ICMPâ
set firewall ipv4 name WAN_LOCAL rule 15 protocol âicmpâ
set firewall ipv4 name WAN_LOCAL rule 15 state âestablishedâ
set firewall ipv4 name WAN_LOCAL rule 15 state ârelatedâ
set firewall ipv4 name WAN_LOCAL rule 15 state ânewâ
set firewall ipv4 name WAN_LOCAL rule 20 action âacceptâ
set firewall ipv4 name WAN_LOCAL rule 20 destination port â500,4500,4510,4511â
set firewall ipv4 name WAN_LOCAL rule 20 protocol âudpâ
set firewall ipv4 name WAN_LOCAL rule 20 state âestablishedâ
set firewall ipv4 name WAN_LOCAL rule 20 state ârelatedâ
set firewall ipv4 name WAN_LOCAL rule 20 state ânewâ
set firewall ipv4 name WAN_LOCAL rule 25 action âacceptâ
set firewall ipv4 name WAN_LOCAL rule 25 protocol âespâ
set firewall ipv4 name WAN_LOCAL rule 25 state âestablishedâ
set firewall ipv4 name WAN_LOCAL rule 25 state ârelatedâ
set firewall ipv4 name WAN_LOCAL rule 25 state ânewâ
set firewall ipv4 name WAN_LOCAL rule 100 action âdropâ
set firewall ipv4 name WAN_LOCAL rule 100 description âDROP INVALID STATEâ
set firewall ipv4 name WAN_LOCAL rule 100 state âinvalidâ
vyos@vyos:~$ show vpn ips sa
Connection State Uptime Bytes In/Out Packets In/Out Remote address Remote ID Proposal
dmvpn up 13m14s 7K/0B 78/0 IP(hidden) IP(hidden) AES_CBC_256/HMAC_SHA1_94
Hope you can point me the right direction.
Thanks!