OpenWrt Forum Archive

Topic: Config Openwrt as home server & AP

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

Dear all!

We(4 people) live in a flat where we have an O2 ADSL box with wifi and I have a TL-MR3220 w OpenWRT which I use it as home server (FTP server,Samba,Transmission).
Well, my main problem that I have to use the O2 wifi network which is terrible . I want to use the TLMR3220 wifi.
The TLMR is connected to the O2box on WAN port. The services work correctly, but I want to bypass the O2 wifi when I'm moving files from/to my server.

my last config files

etc/config/network

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'proto' 'static'
    option 'gateway' '192.168.1.254'
    option 'dns' '192.168.1.254'
    option '_orig_ifname' 'eth0'
    option '_orig_bridge' 'false'
    option 'type' 'bridge'
    option 'ipaddr' '192.168.1.3'
    option 'netmask' '255.255.255.0'

config 'interface' 'wan'
    option 'ifname' 'eth1'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.2'
    option 'netmask' '255.255.255.0'
    option 'gateway' '192.168.1.254'
    option 'dns' '192.168.1.254'

config 'switch' 'eth0'
    option 'enable_vlan' '1'

config 'switch_vlan'
    option 'device' 'eth0'
    option 'vlan' '1'
    option 'ports' '0 1 2 3 4'


/etc/config/wireless

config 'wifi-device' 'radio0'
    option 'type' 'mac80211'
    option 'macaddr' '**:**:**:**:**:**'
    list 'ht_capab' 'SHORT-GI-40'
    list 'ht_capab' 'TX-STBC'
    list 'ht_capab' 'RX-STBC1'
    list 'ht_capab' 'DSSS_CCK-40'
    option 'txpower' '20'
    option 'hwmode' '11g'
    option 'channel' 'auto'
    option 'country' 'GB'
    option 'distance' '50'

config 'wifi-iface'
    option 'device' 'radio0'
    option 'mode' 'ap'
    option 'ssid' 'tl-mr3220'
    option 'encryption' 'psk2'
    option 'key' '***************'
    option 'network' 'lan'


I know they looks like a piece of shit, but i've already tried everything. smile

Please apologize for my poor english and thank you for your help!

pokot

How about this?

config 'wifi-iface'
    option 'device' 'radio0'
    option 'mode' 'ap'
    option 'ssid' 'tl-mr3220'
    option 'encryption' 'psk2'
    option 'key' '***************'
#    option 'network' 'lan'
    option 'network' 'wan'

config 'interface' 'wan'
    option 'type' 'bridge'
    option 'ifname' 'eth1'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.2'
    option 'netmask' '255.255.255.0'
    option 'gateway' '192.168.1.254'
    option 'dns' '192.168.1.254'

And you should change LAN ip as like 192.168.2.1.

I'm very thank you for your help!
now it's working, but I need to test, because I had problem with the O2-box (I always had to playing with the IP addresses on notebooks). DHCP did not work. I hope the incorrect config file caused this.I'll report you later.
Thank you again!

pokot

Unfortunately It's still bad, because I get the IP from the O2 box. I need manual IP config on notebooks (I have tried XP and also Ubuntu) and always replace the IP because there is not internet. The strange thing is, that the TLMR3220 has fix 192.168.1.2 IP and works always correctly.
I think it would be better if the tplink had a subnet and i use that (if possible)

The discussion might have continued from here.