Can't get network sharing working
by doethreethousand from LinuxQuestions.org on (#565E4)
https://wiki.archlinux.org/index.php/Internet_sharing
I'm trying to share my wifi connection with my ethernet connection. My internet connection is out and my roku tv wont connect to a router to stream with unless it has internet connection. So I want to share my laptops wifi with that router. Here is what I have done.
Enabled packet forwarding.
sysctl net.ipv4.ip_forward=1
IPtables rules
Code: Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
2 0 0 ACCEPT all -- eth0 wlan0 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 18 packets, 1241 bytes)
num pkts bytes target prot opt in out source destination
1 10 684 MASQUERADE all -- * wlan0 0.0.0.0/0 0.0.0.0/0Added address 192.168.1.1/24 to eth0
Configured dnsmasq
Code: interface=eth0
bind-interfaces
dhcp-option=3,192.168.1.1
dhcp-option=6,8.8.8.8
dhcp-option=121,192.168.1.1/24,192.168.1.1
dhcp-range=192.168.1.100,192.168.0.199,12hAnd started it. No results. I tried disabling dnsmasq and doing
ip route add default via 192.168.1.100 dev eth0
with no results either.
What am I doing wrong? I've also tried doing networkmanagers internet sharing and that won't work either. Is network manager interfering with the iptables. I deleted the ICS on NetworkManager.
OS is latest release of Kali Linux


I'm trying to share my wifi connection with my ethernet connection. My internet connection is out and my roku tv wont connect to a router to stream with unless it has internet connection. So I want to share my laptops wifi with that router. Here is what I have done.
Enabled packet forwarding.
sysctl net.ipv4.ip_forward=1
IPtables rules
Code: Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
2 0 0 ACCEPT all -- eth0 wlan0 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 18 packets, 1241 bytes)
num pkts bytes target prot opt in out source destination
1 10 684 MASQUERADE all -- * wlan0 0.0.0.0/0 0.0.0.0/0Added address 192.168.1.1/24 to eth0
Configured dnsmasq
Code: interface=eth0
bind-interfaces
dhcp-option=3,192.168.1.1
dhcp-option=6,8.8.8.8
dhcp-option=121,192.168.1.1/24,192.168.1.1
dhcp-range=192.168.1.100,192.168.0.199,12hAnd started it. No results. I tried disabling dnsmasq and doing
ip route add default via 192.168.1.100 dev eth0
with no results either.
What am I doing wrong? I've also tried doing networkmanagers internet sharing and that won't work either. Is network manager interfering with the iptables. I deleted the ICS on NetworkManager.
OS is latest release of Kali Linux