Results 1 to 2 of 2
I have an adhoc network set up between an Arch computer connected to the internet and a Ubuntu laptop. I want to share the internet connection between the two. I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-22-2011 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 27
Internet Sharing
I have an adhoc network set up between an Arch computer connected to the internet and a Ubuntu laptop. I want to share the internet connection between the two. I found a guide online and issued these commands on the computer connected to the internet.
On the other computer, the one that doesn't have internet I didCode:sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
After doing that I cannot get connected to the internet still. What am I doing wrong here? Thank you for the help.Code:sudo route add default gw 192.168.0.1 sudo sh -c "echo 'nameserver 8.8.8.8' >> /etc/resolv.conf"
- 02-22-2011 #2
Hi,
please, could you report on ubuntu pct?:
iptables -t nat -nvL
iptables - nvL
(if you have previous iptables rules)
and:
route -n
ifconfig
I think that the problem can be due to ifconfig on ubuntu and route.
RegardsThere are people trying to avoid mistakes and another that tries to target.


Reply With Quote
