View difference between Paste ID: kC1sNKUR and 5S1Bkdmg
SHOW: | | - or go back to the newest paste.
1
brctl addbr br0
2
# new way: 'ip link add dev br0 type bridge'
3-
ifconfig br0 192.168.50.100
3+
4-
iptables -A FORWARD -i br0 -j ACCEPT
4+
brctl addif br0 eth0
5
# new way: 'ip link set eth0 master br0'
6
7-
echo 1 > /proc/sys/net/ipv4/ip_forward
7+
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
8-
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
8+
echo 1 > /proc/sys/net/ipv4/conf/all/forwarding
9-
iptables -A FORWARD -i br0 -j ACCEPT
9+
# same as 'echo 1 > /proc/sys/net/ipv4/ip_forward'
10-
iptables -A FORWARD -i wlp0s29u1u6 -j ACCEPT
10+
11
dhclient br0