5 GHz if has an internet but 2.4 if does not, plz help

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
raminsomnia
DD-WRT Novice


Joined: 08 Sep 2017
Posts: 18

PostPosted: Sun Sep 17, 2017 20:14    Post subject: 5 GHz if has an internet but 2.4 if does not, plz help Reply with quote
I have 3, e4200 linksys routers which are connected to each other throught 5GHz as a backbone and all have an accesss to the internet as well. As these routers are dual band, I only activated 2.4 GHz interface (beside 5GHz interface) on "just" one of these routers which is intended to operate as an access point for end users. I activated the DHCP just on this interface(2.4)for allocating ip addresses to the end users. Devices can get ip addresses when I use multiple dhcpd on the 2.4 and can ping 10.0.0.8 (see below)

Now the issue that I am dealing with at the moment is that my users are obtaining ip from the 2.4 interface however they have no internet access. Meaning that the router itself has an access to the internet on 5 GHz interfaces and not on the 2.4. My 5GHz interfaces are meshing with each other with the olsr routing and ad-hoc wireless mode.

My router configurations are as the following

Router 1 Router 2 Router 3(OLSR GW)

Eth0: Eth0: Eth0:

Ip:192.168.1.8 Ip:192.168.1.7 Ip:192.168.1.6
Mask:255.255.255.0 Mask:255.255.255.0 Mask:255.255.255.0
Dhcp : disabled Dhcp : disabled Dhcp : disabled
DNDmasq : checked DNDmasq : checked DNDmasq : checked

Wl0: Wl0 : disabled Wl0 :disabled
Ip: 10.1.1.8
Mask:255.255.255.0
Wireless mode : AP
Network mode : mixed
Channel: 6
Channel Width: 40

Wl1 Wl1 Wl1

Ip: 10.0.0.8 Ip: 10.0.0.7 Ip: 10.0.0.6
Mask:255.255.255.0 Mask:255.255.255.0 Mask:255.255.255.0
Wireless mode : adhoc Wireless mode : adhoc Wireless mode : adhoc
Network mode : mixed Network mode : mixed Network mode : mixed
Channel: auto Channel: auto Channel: auto
Channel Width: 40 Channel Width: 40 Channel Width: 40


I also tried in additional dnsmasq

interface=wl0
dhcp-option=wl0,3,10.1.1.8
dhcp-option=wl0,6,10.1.1.8
dhcp-range=wl0,10.1.1.9,10.1.1.20,255.255.255.0,24h
but nothing changes my devices can’t get addresses in this method
all routers are using the "DD-WRT v3.0-r30949 mega (12/15/16)" build. Shall I upgrade the build?
I also used this rules on the administration section and saved as firewall
iptables -I FORWARD -i wl0 -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -m state --state NEW -j DROP
iptables -t nat -I POSTROUTING -o wl0 -j SNAT --to `nvram get lan_ipaddr`
iptables -I INPUT -i wl0 -p udp --dport 67 -j ACCEPT
iptables -I INPUT -i wl0 -p udp --dport 53 -j ACCEPT
iptables -I INPUT -i wl0 -p tcp --dport 53 -j ACCEPT
iptables -I FORWARD -i wl0 -p udp --dport 53 -j ACCEPT
iptables -I FORWARD -i wl0 -p tcp --dport 53 -j ACCEPT
iptables -I FORWARD -i wl0 -p tcp --dport 80 -j ACCEPT
iptables -I FORWARD -i wl0 -p tcp --dport 443 -j ACCEPT

should the firewall be on when using these commands?

I really tried everything possible but it seems that nothing works out for mw

That would be greatly appreciated if anyone can guide me on this matter
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Sun Sep 17, 2017 20:21    Post subject: Reply with quote
iptables -t nat -I POSTROUTING -o `get_wanface` -j MASQUERADE

This will enable nat on the wan from all networks.
raminsomnia
DD-WRT Novice


Joined: 08 Sep 2017
Posts: 18

PostPosted: Sun Sep 17, 2017 20:48    Post subject: Reply with quote
Per Yngve Berg wrote:
iptables -t nat -I POSTROUTING -o `get_wanface` -j MASQUERADE

This will enable nat on the wan from all networks.


Shall I turn on the firewall stp when I use these firewall commands?

I Changed wl0 to eth1 in additional dnsmaq now I can get ip addresses with this method but still no internet

interface=eth1
dhcp-option=eth1,3,10.1.1.8
dhcp-option=eth1,6,10.1.1.8
dhcp-range=eth1,10.1.1.9,10.1.1.20,255.255.255.0,24h
raminsomnia
DD-WRT Novice


Joined: 08 Sep 2017
Posts: 18

PostPosted: Mon Sep 18, 2017 10:32    Post subject: Re: 5 GHz if has an internet but 2.4 if does not, plz help Reply with quote
Editing the firewall rules I can ping the internet(4.2.2.2) from end users connected to my third router on the 2.4 interface but still no webpages are being opened . any suggestions?

raminsomnia wrote:
I have 3, e4200 linksys routers which are connected to each other throught 5GHz as a backbone and all have an accesss to the internet as well. As these routers are dual band, I only activated 2.4 GHz interface (beside 5GHz interface) on "just" one of these routers which is intended to operate as an access point for end users. I activated the DHCP just on this interface(2.4)for allocating ip addresses to the end users. Devices can get ip addresses when I use multiple dhcpd on the 2.4 and can ping 10.0.0.8 (see below)

Now the issue that I am dealing with at the moment is that my users are obtaining ip from the 2.4 interface however they have no internet access. Meaning that the router itself has an access to the internet on 5 GHz interfaces and not on the 2.4. My 5GHz interfaces are meshing with each other with the olsr routing and ad-hoc wireless mode.

My router configurations are as the following

Router 1 Router 2 Router 3(OLSR GW)

Eth0: Eth0: Eth0:

Ip:192.168.1.8 Ip:192.168.1.7 Ip:192.168.1.6
Mask:255.255.255.0 Mask:255.255.255.0 Mask:255.255.255.0
Dhcp : disabled Dhcp : disabled Dhcp : disabled
DNDmasq : checked DNDmasq : checked DNDmasq : checked

Wl0: Wl0 : disabled Wl0 :disabled
Ip: 10.1.1.8
Mask:255.255.255.0
Wireless mode : AP
Network mode : mixed
Channel: 6
Channel Width: 40

Wl1 Wl1 Wl1

Ip: 10.0.0.8 Ip: 10.0.0.7 Ip: 10.0.0.6
Mask:255.255.255.0 Mask:255.255.255.0 Mask:255.255.255.0
Wireless mode : adhoc Wireless mode : adhoc Wireless mode : adhoc
Network mode : mixed Network mode : mixed Network mode : mixed
Channel: auto Channel: auto Channel: auto
Channel Width: 40 Channel Width: 40 Channel Width: 40


I also tried in additional dnsmasq

interface=wl0
dhcp-option=wl0,3,10.1.1.8
dhcp-option=wl0,6,10.1.1.8
dhcp-range=wl0,10.1.1.9,10.1.1.20,255.255.255.0,24h
but nothing changes my devices can’t get addresses in this method
all routers are using the "DD-WRT v3.0-r30949 mega (12/15/16)" build. Shall I upgrade the build?
I also used this rules on the administration section and saved as firewall
iptables -I FORWARD -i wl0 -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -m state --state NEW -j DROP
iptables -t nat -I POSTROUTING -o wl0 -j SNAT --to `nvram get lan_ipaddr`
iptables -I INPUT -i wl0 -p udp --dport 67 -j ACCEPT
iptables -I INPUT -i wl0 -p udp --dport 53 -j ACCEPT
iptables -I INPUT -i wl0 -p tcp --dport 53 -j ACCEPT
iptables -I FORWARD -i wl0 -p udp --dport 53 -j ACCEPT
iptables -I FORWARD -i wl0 -p tcp --dport 53 -j ACCEPT
iptables -I FORWARD -i wl0 -p tcp --dport 80 -j ACCEPT
iptables -I FORWARD -i wl0 -p tcp --dport 443 -j ACCEPT

should the firewall be on when using these commands?

I really tried everything possible but it seems that nothing works out for mw

That would be greatly appreciated if anyone can guide me on this matter
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Mon Sep 18, 2017 11:55    Post subject: Reply with quote
Can you open http://83.141.4.210/site/index

This is the dd-wrt site. If yes, it may be a dns lookup issue.
raminsomnia
DD-WRT Novice


Joined: 08 Sep 2017
Posts: 18

PostPosted: Mon Sep 18, 2017 13:10    Post subject: Reply with quote
Per Yngve Berg wrote:
Can you open http://83.141.4.210/site/index

This is the dd-wrt site. If yes, it may be a dns lookup issue.


It just worked out! I finally could get the mesh fully operational with 3 dual band E4200 routers, End users can also connect to the internet with relatively hight speed connection. all the connections are just eshtablished through the wireless interfaces and no wired connection is involved.
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Mon Sep 18, 2017 14:15    Post subject: Reply with quote
raminsomnia wrote:
It just worked out! I finally could get the mesh fully operational with 3 dual band E4200 routers, End users can also connect to the internet with relatively high speed connection. all the connections are just established through the wireless interfaces and no wired connection is involved.
Good to hear...but for posterity, did you change something, or reboot, or did Per Yngve Berg wave his magical wand? Smile
_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
raminsomnia
DD-WRT Novice


Joined: 08 Sep 2017
Posts: 18

PostPosted: Mon Sep 18, 2017 18:30    Post subject: Reply with quote
jwh7 wrote:
raminsomnia wrote:
It just worked out! I finally could get the mesh fully operational with 3 dual band E4200 routers, End users can also connect to the internet with relatively high speed connection. all the connections are just established through the wireless interfaces and no wired connection is involved.
Good to hear...but for posterity, did you change something, or reboot, or did Per Yngve Berg wave his magical wand? Smile


yes I had slight changes on the dhcp and firewall rules and its really hard to get a solid answer here in the forum, anyway thanks for your guide man
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum