#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
INET="wlp3s0"
INETIP="$(ifconfig $INET | sed -n '/inet addr/{s/.addr://;s/ .//;p}')"
iptables -t nat -A POSTROUTING -o $INET -j SNAT --to-source $INETIP
contact@x21.ch
#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
INET="wlp3s0"
INETIP="$(ifconfig $INET | sed -n '/inet addr/{s/.addr://;s/ .//;p}')"
iptables -t nat -A POSTROUTING -o $INET -j SNAT --to-source $INETIP