Posted: Fri May 18, 2012 2:36 Post subject: Decent OLSR guide?
I'm trying to get OLSR running on v24-sp2 pre and I'm having trouble understanding the settings, the wiki guide seems to be made for an older version or is just incomplete, so I was wondering if there is a newer/more through guide available?
Posted: Fri May 18, 2012 4:34 Post subject: Re: Decent OLSR guide?
I would highly support this request. I too have been posting all over the forums for the last couple of months, with no help. OLSR is simply an awesome feature, but it is just now working, especially the NAT portion in ad-hoc mode, as per the wiki.
Can somebody please update the wiki or point to working directions?
TIA.
nixcamic wrote:
I'm trying to get OLSR running on v24-sp2 pre and I'm having trouble understanding the settings, the wiki guide seems to be made for an older version or is just incomplete, so I was wondering if there is a newer/more through guide available?
Posted: Mon May 28, 2012 16:42 Post subject: OLSR Guide for v24-sp2
I tried to find a way to help update the wiki, but I can't seem to find a way to create an account. I can understand why someone unverified could not contribute.
Here is my guide to get OLSR working with v24-sp2.
Prerequisites:
Router that will support the larger firmware required to support OLSR
Firmware that supports OLSR
My Setup:
WRT54GL v3
WRT150N v1.1
Note: This guide does not cover how to install the correct firmware for your router that will support OLSR.
Concept for the setup:
The routers are all setup similar. The areas to setup are:
Wireless Adhoc
Advanced Routing
Router 1 setup (for this example, I am using the WRT54GL):
Wireless Security Notes: I could not get WPAPSK or WPA2PSK to work. I was either left with no encryption or WEP. I choose WEP to at least have some level of encryption.
Each router will need 2 unique IP addresses: the internal IP and the wireless/mesh IP. I could not get NAT to work for the wired ports going to the mesh. In the end, I found NAT on the wired ports would be undesirable for my purpose. If there is someone that is better with IPTables, this could be changed.
Testing:
Now, I can ping 10.0.0.1 and 192.168.1.1 from a wired port on router 2 (WRT150N). If you connect to a wired port on router 1 (WRT54GL), the pinging works for 10.0.0.2 and 192.168.2.1. When I get more routers, I can add them to the mesh network making sure the internal IP, wireless IP are unique. The wireless IP needs to be on the same network as the other routers -- that is why I used 10.0.0.0/8. Also make sure you set the correct Host Net Announcement.
**************************************
Adding Ineternet Access
I was able to allow Internet access to my mesh nodes as well. On router 1 (WRT54GL), I connected my internet connection to the WAN port. Once it was connected and working on router 1 (not covered in this), I only had to make a few more changes.
On router 1 (WRT54GL):
Administration/Commands/Firewall:
iptables -t nat -A POSTROUTING -o vlan1 -j MASQUERADE
On router 2 (WRT150N):
Setup/Basic Setup/Router IP:
Local DNS: <my correct DNS>
*****************************
Some items I am wishing for:
The settings to change between NAT on wired ports
The ablility to use WPA2PSK (or a reason why it doesn't work)
Posted: Tue May 29, 2012 10:22 Post subject: Re: OLSR Guide for v24-sp2
Hi Matt,
Thank you so much contributing your guide below!! You have no idea how long I have waited for somebody to respond to my plea on OLSR help.
I will go through your guide and try to replicate it. In the meantime, I had a few quick questions -
1) For router 1, you say you enabled internet access on WAN. You seem to have added a single iptables command. With this single command, is the router able to forward/route packets from the mesh to Internet i.e. is the router 1 truly acting as a gateway to the internet, despite being in OLSR mode and not in Gateway mode?
2) Did you try the 3 iptables command in the OLSR wiki for enabling gateway mode while in OLSR mode? If so, did it work for you? I tried them, but did not work for me.
3) If (1) is working for you, I am not clear why you believe NAT is not working? Without NAT, how can Router 1 route internet packets from WAN port to wireless mesh?
Once again, many thanks for your contribution! I am hoping that with your help, I can finally get OLSR working!!!!
Thanks.
mzundel wrote:
I tried to find a way to help update the wiki, but I can't seem to find a way to create an account. I can understand why someone unverified could not contribute.
Here is my guide to get OLSR working with v24-sp2.
Prerequisites:
Router that will support the larger firmware required to support OLSR
Firmware that supports OLSR
My Setup:
WRT54GL v3
WRT150N v1.1
Note: This guide does not cover how to install the correct firmware for your router that will support OLSR.
Concept for the setup:
The routers are all setup similar. The areas to setup are:
Wireless Adhoc
Advanced Routing
Router 1 setup (for this example, I am using the WRT54GL):
Wireless Security Notes: I could not get WPAPSK or WPA2PSK to work. I was either left with no encryption or WEP. I choose WEP to at least have some level of encryption.
Each router will need 2 unique IP addresses: the internal IP and the wireless/mesh IP. I could not get NAT to work for the wired ports going to the mesh. In the end, I found NAT on the wired ports would be undesirable for my purpose. If there is someone that is better with IPTables, this could be changed.
Testing:
Now, I can ping 10.0.0.1 and 192.168.1.1 from a wired port on router 2 (WRT150N). If you connect to a wired port on router 1 (WRT54GL), the pinging works for 10.0.0.2 and 192.168.2.1. When I get more routers, I can add them to the mesh network making sure the internal IP, wireless IP are unique. The wireless IP needs to be on the same network as the other routers -- that is why I used 10.0.0.0/8. Also make sure you set the correct Host Net Announcement.
**************************************
Adding Ineternet Access
I was able to allow Internet access to my mesh nodes as well. On router 1 (WRT54GL), I connected my internet connection to the WAN port. Once it was connected and working on router 1 (not covered in this), I only had to make a few more changes.
On router 1 (WRT54GL):
Administration/Commands/Firewall:
iptables -t nat -A POSTROUTING -o vlan1 -j MASQUERADE
On router 2 (WRT150N):
Setup/Basic Setup/Router IP:
Local DNS: <my correct DNS>
*****************************
Some items I am wishing for:
The settings to change between NAT on wired ports
The ablility to use WPA2PSK (or a reason why it doesn't work)
Posted: Tue Jun 05, 2012 4:25 Post subject: Re: OLSR Guide for v24-sp2
Bump. Anybody else willing to share their OLSR experience, especially how to configure Internet access in the mesh network through NAT or any other means?
I am simply unable to get the OLSR wiki instructions on NAT to work.
Please share.
Thanks.
jilebi wrote:
Hi Matt,
Thank you so much contributing your guide below!! You have no idea how long I have waited for somebody to respond to my plea on OLSR help.
I will go through your guide and try to replicate it. In the meantime, I had a few quick questions -
1) For router 1, you say you enabled internet access on WAN. You seem to have added a single iptables command. With this single command, is the router able to forward/route packets from the mesh to Internet i.e. is the router 1 truly acting as a gateway to the internet, despite being in OLSR mode and not in Gateway mode?
2) Did you try the 3 iptables command in the OLSR wiki for enabling gateway mode while in OLSR mode? If so, did it work for you? I tried them, but did not work for me.
3) If (1) is working for you, I am not clear why you believe NAT is not working? Without NAT, how can Router 1 route internet packets from WAN port to wireless mesh?
Once again, many thanks for your contribution! I am hoping that with your help, I can finally get OLSR working!!!!
Thanks.
mzundel wrote:
I tried to find a way to help update the wiki, but I can't seem to find a way to create an account. I can understand why someone unverified could not contribute.
Here is my guide to get OLSR working with v24-sp2.
Prerequisites:
Router that will support the larger firmware required to support OLSR
Firmware that supports OLSR
My Setup:
WRT54GL v3
WRT150N v1.1
Note: This guide does not cover how to install the correct firmware for your router that will support OLSR.
Concept for the setup:
The routers are all setup similar. The areas to setup are:
Wireless Adhoc
Advanced Routing
Router 1 setup (for this example, I am using the WRT54GL):
Wireless Security Notes: I could not get WPAPSK or WPA2PSK to work. I was either left with no encryption or WEP. I choose WEP to at least have some level of encryption.
Each router will need 2 unique IP addresses: the internal IP and the wireless/mesh IP. I could not get NAT to work for the wired ports going to the mesh. In the end, I found NAT on the wired ports would be undesirable for my purpose. If there is someone that is better with IPTables, this could be changed.
Testing:
Now, I can ping 10.0.0.1 and 192.168.1.1 from a wired port on router 2 (WRT150N). If you connect to a wired port on router 1 (WRT54GL), the pinging works for 10.0.0.2 and 192.168.2.1. When I get more routers, I can add them to the mesh network making sure the internal IP, wireless IP are unique. The wireless IP needs to be on the same network as the other routers -- that is why I used 10.0.0.0/8. Also make sure you set the correct Host Net Announcement.
**************************************
Adding Ineternet Access
I was able to allow Internet access to my mesh nodes as well. On router 1 (WRT54GL), I connected my internet connection to the WAN port. Once it was connected and working on router 1 (not covered in this), I only had to make a few more changes.
On router 1 (WRT54GL):
Administration/Commands/Firewall:
iptables -t nat -A POSTROUTING -o vlan1 -j MASQUERADE
On router 2 (WRT150N):
Setup/Basic Setup/Router IP:
Local DNS: <my correct DNS>
*****************************
Some items I am wishing for:
The settings to change between NAT on wired ports
The ablility to use WPA2PSK (or a reason why it doesn't work)
Did you ever figure how to use
WPA2? I bought 3 ASUS RT-56Rs, set them up as outlined here, https://www.dd-wrt.com/phpBB2/viewtopic.php?t=309282&highlight=olsr+setup. However, I am still stuck using WEP. Also, while the router are able to see each other, I am unable to ping them through telenet and can't see the OLSR network from the wifi card on my laptop or desktop. I would appreciate any help you are able to give.