User Tools

Site Tools


linux:asrouter

With this snippet all requests to interface wlx74..55c will be routed to wlp2s0

#!/bin/bash
sudo sysctl -w net.ipv4.ip_forward=1

sudo iptables -t nat -A POSTROUTING --out-interface wlp2s0 -j MASQUERADE
sudo iptables -A FORWARD --in-interface wlx74da387e955c -j ACCEPT
linux/asrouter.txt · Last modified: 2018/07/01 10:46 by els