Hey Benny!
BP> not working eksample that works in pratice
Yes it is. In fact it is NATing for 3 smartphones for about a week now and
have yet to hear a complaint from any of them.
----- /etc/sysconfig/ipv4-masq starts
table ip nat {
chain prerouting {
type nat hook prerouting priority 0; policy accept;
}
chain postrouting {
type nat hook postrouting priority 100; policy accept;
oifname "eth0" masquerade
}
}
----- /etc/sysconfig/ipv4-masq ends
I start it up in the wireless rc script using these two commands;
echo 1 > /proc/sys/net/ipv4/ip_forward
nft -f /etc/sysconfig/ipv4-masq
It's just that simple. Mind you the iptables NAT/masquerade wasn't anymore
complicated.
Life is good,
Maurice
... Don't cry for me I have vi.
--- GNU bash, version 4.4.12(1)-release (x86_64-silvermont-linux-gnu)
* Origin: Little Mikey's Brain - Ladysmith BC, Canada (1:153/7001)
|