Unable to share wifi through ethernet
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
I'm attempting to share my wifi connection from my Ubuntu computer to my raspberry pi through the ethernet port. I've tried a lot of things and nothing seems to work.
Right now I've created a wired connection, set it to "share to other computers" and "allow all users to connect', and then on my wifi connection I switched it to "allow all users.." and "shared to other computers". I really have no idea why it doesn't work.
networking wireless ethernet
add a comment |Â
up vote
1
down vote
favorite
I'm attempting to share my wifi connection from my Ubuntu computer to my raspberry pi through the ethernet port. I've tried a lot of things and nothing seems to work.
Right now I've created a wired connection, set it to "share to other computers" and "allow all users to connect', and then on my wifi connection I switched it to "allow all users.." and "shared to other computers". I really have no idea why it doesn't work.
networking wireless ethernet
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm attempting to share my wifi connection from my Ubuntu computer to my raspberry pi through the ethernet port. I've tried a lot of things and nothing seems to work.
Right now I've created a wired connection, set it to "share to other computers" and "allow all users to connect', and then on my wifi connection I switched it to "allow all users.." and "shared to other computers". I really have no idea why it doesn't work.
networking wireless ethernet
I'm attempting to share my wifi connection from my Ubuntu computer to my raspberry pi through the ethernet port. I've tried a lot of things and nothing seems to work.
Right now I've created a wired connection, set it to "share to other computers" and "allow all users to connect', and then on my wifi connection I switched it to "allow all users.." and "shared to other computers". I really have no idea why it doesn't work.
networking wireless ethernet
networking wireless ethernet
asked Feb 14 at 4:15
Astrum
1115
1115
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
Try this
Enable IP forwarding. This is done either by using
echo "1" > /proc/sys/net/ipv4/ip_forward
After that add a rule telling to forward the traffic
sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Because you router do not known for your lan network we must do masquarade
sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE
NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
You can see card's names with command ip a
or ifconfig
add a comment |Â
up vote
0
down vote
I just had the same issue and solved it like this.
In the terminal type
nm-connection-editor
When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.
Then save the settings and it should work
from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Try this
Enable IP forwarding. This is done either by using
echo "1" > /proc/sys/net/ipv4/ip_forward
After that add a rule telling to forward the traffic
sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Because you router do not known for your lan network we must do masquarade
sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE
NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
You can see card's names with command ip a
or ifconfig
add a comment |Â
up vote
2
down vote
Try this
Enable IP forwarding. This is done either by using
echo "1" > /proc/sys/net/ipv4/ip_forward
After that add a rule telling to forward the traffic
sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Because you router do not known for your lan network we must do masquarade
sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE
NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
You can see card's names with command ip a
or ifconfig
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Try this
Enable IP forwarding. This is done either by using
echo "1" > /proc/sys/net/ipv4/ip_forward
After that add a rule telling to forward the traffic
sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Because you router do not known for your lan network we must do masquarade
sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE
NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
You can see card's names with command ip a
or ifconfig
Try this
Enable IP forwarding. This is done either by using
echo "1" > /proc/sys/net/ipv4/ip_forward
After that add a rule telling to forward the traffic
sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Because you router do not known for your lan network we must do masquarade
sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE
NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
You can see card's names with command ip a
or ifconfig
answered Feb 14 at 7:02
![](https://i.stack.imgur.com/dfdmA.jpg?s=32&g=1)
![](https://i.stack.imgur.com/dfdmA.jpg?s=32&g=1)
2707974
7,58852137
7,58852137
add a comment |Â
add a comment |Â
up vote
0
down vote
I just had the same issue and solved it like this.
In the terminal type
nm-connection-editor
When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.
Then save the settings and it should work
from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html
add a comment |Â
up vote
0
down vote
I just had the same issue and solved it like this.
In the terminal type
nm-connection-editor
When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.
Then save the settings and it should work
from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I just had the same issue and solved it like this.
In the terminal type
nm-connection-editor
When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.
Then save the settings and it should work
from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html
I just had the same issue and solved it like this.
In the terminal type
nm-connection-editor
When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.
Then save the settings and it should work
from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html
answered Jul 11 at 5:14
P4ul
12117
12117
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1005994%2funable-to-share-wifi-through-ethernet%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password