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 {
|
chain postrouting {
|
||||||
type nat hook postrouting priority 100; policy accept;
|
type nat hook postrouting priority 100; policy accept;
|
||||||
|
|
||||||
# nat masquerade from lan to wan
|
# nat masquerade from any to wan
|
||||||
iif {{ lan_interface }} oif {{ wan_interface }} masquerade
|
oif {{ wan_interface }} masquerade
|
||||||
|
|
||||||
{% if wireguard_enabled %}
|
|
||||||
# nat mascerade from wireguard to wan (exit node)
|
|
||||||
iifname "wt*" oif {{ wan_interface }} masquerade
|
|
||||||
{% endif %}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue