OpenWrt Forum Archive

Topic: Problem with wireless connection. wrt54gl

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

Hello,
I have installed openwrt 2.4 for my linksys wrt54gl. I am a newbie with routers, but i have read a lot of thing about how to configure this ruter with openwrt.
I have succeeded to connect the ruter to my ISP, with pppoe. I have increased the TTL, because the ISP delivered the packages with TTL = 1.
I have build an interface for wireless connection, my laptop connects to the wireless and everything is fine. I can connect with ssh to 192.168.1.1, but the ruter does not send my internet packages.

ping google.ro - does not work, and i have no internet conectivity.
Even i can comunicate with the ruter, and the ruter has internet connection, i can not get internet packages.

I don't know if i have to add some new routs or something.
Can anybody help me please ?
Thanks

fr33ze wrote:

Hello,
I have installed openwrt 2.4 for my linksys wrt54gl. I am a newbie with routers, but i have read a lot of thing about how to configure this ruter with openwrt.
I have succeeded to connect the ruter to my ISP, with pppoe. I have increased the TTL, because the ISP delivered the packages with TTL = 1.
I have build an interface for wireless connection, my laptop connects to the wireless and everything is fine. I can connect with ssh to 192.168.1.1, but the ruter does not send my internet packages.

ping google.ro - does not work, and i have no internet conectivity.
Even i can comunicate with the ruter, and the ruter has internet connection, i can not get internet packages.

I don't know if i have to add some new routs or something.
Can anybody help me please ?
Thanks

first of all,
can you ping google from the router, by logging into it using ssh ?
how did you make sure router accesses the internet ?
how did you configure ur wan port....?
coudl you post configs .....i never used pppoe but someone will help you ?

Hello,
I can login to ruter with ssh root@192.168.1.1, and from there i can ping some website.

I have configured the pppoe with this commands:
uci set network.wan.proto=pppoe
uci set network.wan.username=<pppoe_psername>
uci set network.wan.password=<pppoe_password>
uci commit network
ifup wan

I have configured the wireless connection using:
config wifi-device    wl0
    option type         broadcom
    option channel      5

config wifi-iface
    option device       wl0
    option network  lan
    option mode         ap
    option ssid         OpenWrt
    option encryption   none

I have changed the ttl using:
iptables -t mangle -A PREROUTING -j TTL --ttl-set 64
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 64

Is there a probem with my wireless config ? I want to use the wifi for my notebook and other wireless devices.
I repeat myself: even if the router has internet connection (ping ... works), i can not do the same on my notebook. And my notebook is connected to the router, because i can connect with ssh to it.
Thanks

From what you said,
"I repeat myself: even if the router has internet connection (ping ... works), i can not do the same on my notebook. And my notebook is connected to the router, because i can connect with ssh to it."

I think your bridging has some problems....the router does not know how to
forward packets from wan to your lan..and vise versa
..can you post your network config too...

I have resolved the problem.
I was using:
iptables -t mangle -A PREROUTING -i ppp0 -j TTL --ttl-set 64;
iptables -t mangle -A POSTROUTING -o ppp0 -j TTL --ttl-set 64;
but at the second comand i used -i instead of -o, so no packages for my wireless

But now everything works fine. Thanks.

The discussion might have continued from here.