You are not logged in.

#1 2014-07-09 19:11:32

TheChosenOne
Member
Registered: 2012-09-27
Posts: 130

[SOLVED] Use Arch Linux as internet forwarding for wdr router

Hi
I'm trying to flash my wdr3600 with openwrt. Now, the problem is that I want to use my desktop to share my internet to this router.
But, when I'm trying to ping google on this device, I get an 'unknown host' error. I've already set up my default gw correctly. What am I missing?

Last edited by TheChosenOne (2014-07-14 12:20:20)

Offline

#2 2014-07-09 21:45:45

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Use Arch Linux as internet forwarding for wdr router

If you can ping an external IP address then it's a DNS issue.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2014-07-10 07:22:31

TheChosenOne
Member
Registered: 2012-09-27
Posts: 130

Re: [SOLVED] Use Arch Linux as internet forwarding for wdr router

Sorry, I cannot ping 8.8.8.8
My route -n is

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.10    0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

With 192.168.1.10 the ip of my desktop that forwards.

Last edited by TheChosenOne (2014-07-10 07:43:05)

Offline

#4 2014-07-10 07:42:43

TheChosenOne
Member
Registered: 2012-09-27
Posts: 130

Re: [SOLVED] Use Arch Linux as internet forwarding for wdr router

Problem solved!
I had to do

sudo iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -o wlp3s0 -j MASQUERADE
sudo iptables -I FORWARD -s 192.168.1.1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

which was removed after a reboot?

Offline

Board footer

Powered by FluxBB