OpenWrt Forum Archive

Topic: Help needed with my first openwrt X86 installation

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all, i gave up on the WRT1900AC and now want to go about setting up my first install on an ATOM X86 board with two gigabit ethernet ports.
Managed to get Attitude Adjustment 12.09 r36088 loaded on a CF card and got it to boot without a hitch. I can log into luci via browser at 192.168.1.1
I had to create a new DHCP interface for the WAN, and that appears to work ok as an interface.. within luci I can go into the diagnostic page and ping ok.

Here's my problem!! I can't get onto the internet....I've tried various settings in the firewall within luci and nothing! I've read the openwrt wiki's on networks still not managed to sort it.... I need help please smile   

Just want to keep it simple to start with, a simple WAN and LAN to laptop with the aim of adding a VPN down the line.

Cheers for any advice.

I think you have to add a few rules on the Firewall to allow DHCP renew. I don't know how to do it, as I'm new at Open-wrt.
But, maybe this helps. Check the page Network->Firewall->Traffic Rules

Open-wrt Firewall

However, I can't guide you anymore from here on.

Thanks mate but I still can't for the life of me get internet working on this Atom board of mine. yet both eth0 and eth1 connect fine respectively.

Below are my network and firewall setups. Can anyone spot the mistake or put me in the right direction to get my setup working? Can't bear to lose another night on this!


root@OpenWrt:/etc/config# vi network
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'wan'
        option type 'bridge'
        option proto 'dhcp'
        option ifname 'eth1'

config interface 'lan'
        option ifname 'eth0'
        option type 'bridge'
        option proto 'static'
        option gateway '192.168.1.1'
        option dns '37.235.1.174'
        option ipaddr '192.168.1.2'
        option netmask '255.255.255.0'

**************************************
FIREWALL
root@OpenWrt:/etc/config# vi firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'

config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'

config zone
option name 'wan'
option output 'ACCEPT'
option forward 'REJECT'
option network 'wan'
option input 'ACCEPT'

config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'

config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'

(Last edited by guitarman on 10 Sep 2014, 21:08)

Anyone?

Out of curiosity, why is the 'wan' interface configured as a bridge?

I'm also a little confused by your IP addresses: is 192.168.1.1 on this board or elsewhere? How are you able to get to Luci at 192.168.1.1 when there is no device specified for that IP address?

Along those lines, why does the 'lan' interface have a gateway?

Shouldn't it all look a bit more like this?:

#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
        option dns '37.235.1.174'

#### WAN configuration
config interface        wan
        option ifname   "eth1"
        option proto    dhcp

Yes exactly..my first attempt at configuring openwrt on the x86 platform was rubbish and thats why i came on here asking for some help or direction.

Since posting this thread, i came to the conclusion nobody with some experience wanted to help a newbie take this forward so i abandoned openwrt.

Now using debian 6 on my atom board and learning linux along the way, video tutorials on y*utube helps greatly. Im almost there with it now..vpn and ftp left to configure.

Thanks for taking the time to reply dpj and tkgcmt

I noticed just in browsing that this forum does seem to have a fair amount of daily traffic so it's not hard for a thread to drift off the bottom of the first page quite quickly.

Well, I'm guessing you've tried this already, but try again, please:
http://wiki.openwrt.org/doc/recipes/dumbap
or
http://wiki.openwrt.org/doc/recipes/routedclient

I've tried both, but everytime I did so, I was unable to connect neither the internet nor the router itself. What I missed was that I had to renew my PC ip (I use Windows, so I all had to do was

ipconfig /release
ipconfig /renew

But you can do the same pulling the cable off then putting it in again. Or, if wireless, disconnect and reconnect. See if that is the case... it's silly I know, but I was one victim.

The discussion might have continued from here.