7 lines
241 B
Bash
7 lines
241 B
Bash
#!/bin/bash
|
|
nft add table ip nat
|
|
nft add chain ip nat prerouting { type nat hook prerouting priority 0 \; }
|
|
nft add chain ip nat postrouting { type nat hook postrouting priority 100 \; }
|
|
nft add rule nat postrouting oifname eth0 masquerade
|
|
|