You are not logged in.

#1 2008-03-14 16:11:45

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Arch as a router and Firestarter

I am trying to set up Arch as a Router.  I can connect from the Router box to the Internet no problem.  I can also ping my laptop, and my Laptop can ping the router.

But I can't connect to the Internet with the laptop.  If I do wget www.google.ca I get : failed : Temporary failure in name resolution.

Offline

#2 2008-03-14 16:32:53

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: Arch as a router and Firestarter

You need to specify dns servers (which will resolve the name www.google.ca into an ip address).

Additionally, you need to set up a route for forwarding the connection, and then there are a bunch of optional things (like a dhcp server) http://wiki.archlinux.org/index.php/NAT … connection

Offline

#3 2008-03-14 16:46:03

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: Arch as a router and Firestarter

vogt,
I was under the impression that if on the laptop I have nameserver = 192.168.0.1 in resolv.conf to point it to the router and /etc/resolv.conf in the router box to point to the ISP DNS that would do it since the router box can connect to the internet...

I need to read more I guess...

Offline

#4 2008-03-14 16:53:30

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: Arch as a router and Firestarter

^ that would be the case, if you had a dns server such as dnsmasq on the routing computer (dns is distributed: if your dns server cannot resolve a name, it asks other ones).

/etc/sysctl.conf disables ip forwarding by default too (set net.ipv4.ip_forward=1), and then reboot, or find that thing's counterpart is /sys

Offline

#5 2008-03-14 17:10:48

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: Arch as a router and Firestarter

I installed dnsmasq.  My Laptop can connect.  Thanks !!!

Offline

Board footer

Powered by FluxBB