diff options
Diffstat (limited to 'etc/nftables.conf')
-rw-r--r-- | etc/nftables.conf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/nftables.conf b/etc/nftables.conf index 52bacd38..149beab1 100644 --- a/etc/nftables.conf +++ b/etc/nftables.conf @@ -32,7 +32,7 @@ table inet my_table { udp dport swgp accept tcp dport monerod-p2p accept # phantun - tcp dport 59083 accept + tcp dport phantun accept pkttype host limit rate 5/second counter reject with icmpx type admin-prohibited counter comment "count any other traffic" @@ -75,8 +75,8 @@ table inet nat { iifname $pub_iface tcp dport monerod-p2p dnat ip to 10.0.0.1:monerod-p2p iifname $pub_iface tcp dport monerod-p2p dnat ip6 to [fdc9:281f:04d7:9ee9::1]:monerod-p2p # needed for phantun - iif $pub_iface tcp dport 59083 dnat ip to 10.0.2.2 - iif $pub_iface tcp dport 59083 dnat ip6 to fdc9:281f:04d7:9eeb::2 + iif $pub_iface tcp dport phantun dnat ip to 10.0.2.2 + iif $pub_iface tcp dport phantun dnat ip6 to fdc9:281f:04d7:9eeb::2 } # for all packets to $pub_iface, after routing, replace source address with primary IP of $pub_iface interface chain postrouting { |