TIP: Click on subject to list as thread! ANSI
echo: linux
to: BENNY PEDERSEN
from: MAURICE KINAL
date: 2017-12-16 10:24:00
subject: remotely fidonet

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.