Article 565E4 Can't get network sharing working

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 Linuxlatest?d=yIl2AUoC8zA latest?i=lJDc2o0D57g:Yf-o_29w2Y8:F7zBnMy latest?i=lJDc2o0D57g:Yf-o_29w2Y8:V_sGLiP latest?d=qj6IDK7rITs latest?i=lJDc2o0D57g:Yf-o_29w2Y8:gIN9vFwlJDc2o0D57g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments