feat: simplify wireguard-exit node
This commit is contained in:
parent
89c28c593a
commit
55395d537b
1 changed files with 2 additions and 7 deletions
|
|
@ -55,13 +55,8 @@ table ip nat {
|
|||
chain postrouting {
|
||||
type nat hook postrouting priority 100; policy accept;
|
||||
|
||||
# nat masquerade from lan to wan
|
||||
iif {{ lan_interface }} oif {{ wan_interface }} masquerade
|
||||
|
||||
{% if wireguard_enabled %}
|
||||
# nat mascerade from wireguard to wan (exit node)
|
||||
iifname "wt*" oif {{ wan_interface }} masquerade
|
||||
{% endif %}
|
||||
# nat masquerade from any to wan
|
||||
oif {{ wan_interface }} masquerade
|
||||
}
|
||||
|
||||
chain prerouting {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue