LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2020, 12:15 AM   #1
doethreethousand
LQ Newbie
 
Registered: Jul 2020
Posts: 2

Rep: Reputation: Disabled
Sharing WiFi with ethernet not working


I can't figure out why this isn't working.

iptables
Code:
Chain INPUT (policy ACCEPT 190 packets, 157K bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all  --  wlan0  eth0    192.168.1.0/24       anywhere             ctstate NEW
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT 163 packets, 14321 bytes)
 pkts bytes target     prot opt in     out     source               destination    

MASQUERADE  all  --  anywhere             anywhere
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,12h


ipaddr
Code:
╰─$ sudo ip addr                                                                                                                                                255 ↵
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether dc:0e:a1:19:d4:1d brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 scope global eth0
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 94:39:e5:6c:53:a6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.43.165/24 brd 192.168.43.255 scope global dynamic noprefixroute wlan0
       valid_lft 3586sec preferred_lft 3586sec
    inet6 2600:1004:b15f:db39:24f7:79b0:cda0:30cd/64 scope global dynamic noprefixroute 
       valid_lft 3284sec preferred_lft 3284sec
    inet6 fe80::151d:1d28:c48c:8a3/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
I enabled net packet forwarding

I'm not sure why this isn't working
 
Old 07-27-2020, 10:28 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,153

Rep: Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265
It would help a great deal if you explained what you are trying to do and what isn't working. The setup looks ok if you are connecting externally via wi-fi and want to share that connection via ethernet. Of course this requires that you have a default route set to a gateway on the wlan0 subnet, that you have a static IP on eth0 and that there is no other DHCP server on the eth0 subnet. Is networking still ok on this host? Is the ethernet-attached host not getting an IP? Is it not able to send and receive?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 20LTS dual boot Laptop Dell Inspiron 5548 I can not turn on wifi and in wifi settings indicates no wifi device was found Shra94 Linux - Hardware 1 05-19-2020 04:22 PM
Sharing Expressvpn over wifi or ethernet Ubuntu twirl Linux - Software 4 07-07-2019 01:07 AM
Wifi option is there but no wifi scanning or wifi not working Aakash447 Linux - Newbie 3 06-28-2018 11:48 PM
Sharing internet through data cable from a mobile that is already sharing via wifi Anil Kagi Linux - Newbie 7 02-05-2015 11:15 PM
[SOLVED] Wifi not working in Eee PPC 1000HE (Debian Squeeze), but ethernet is working someshpr Linux - Laptop and Netbook 8 10-10-2011 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration