I often need to quickly setup a router using my linux laptop and hence documenting the general steps.
wlan0 is the internet facing interface while
eth0 is the LAN interface.
Add/Edit the following in
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
I was surprised that iptables modules are not loaded automatically on ArchLinux. Here’s how you load them. Dump the following lines in any file (for eg. netfilter.conf) under modules-load.d and restart your machine. Alternatively load the modules manually if you want to avoid restarting.
@~ 1028$ cat /etc/modules-load.d/netfilter.conf