Decent OLSR guide?

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
nixcamic
DD-WRT Novice


Joined: 16 May 2012
Posts: 3

PostPosted: Fri May 18, 2012 2:36    Post subject: Decent OLSR guide? Reply with quote
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?
Sponsor
jilebi
DD-WRT Novice


Joined: 21 Apr 2012
Posts: 13

PostPosted: Fri May 18, 2012 4:34    Post subject: Re: Decent OLSR guide? Reply with quote
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?
mzundel
DD-WRT Novice


Joined: 28 May 2012
Posts: 1

PostPosted: Mon May 28, 2012 16:42    Post subject: OLSR Guide for v24-sp2 Reply with quote
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.

This router's IP address is 192.168.1.1/24

Wireless/Basic Settings:
    Wireless Mode: Adhoc
    Wireless Network Mode: Mixed
    Wireless Network Name (SSID): meshtest
    Wireless Channel: 1
    Wireless SSID Broadcast: Enable
    Sensitivity Range (ACK Timing): 2000
    Network Configuration: Unbridged
    Multicast forwarding: Disable
    IP Address: 10.0.0.1
    Subnet Mask: 255.0.0.0


Wireless Security wl0
    Security Mode: WEP
    Default Transmit Key: 1
    Encryption: 128 bits
    Key 1: <my 26 char key>


Setup/Advanced Routing:
    Operating Mode: OLSR Router
    Gateway Mode: Disable
    Host Net Announce: <blank>
    Poll Rate: 0.1
    TC Redundancy: 2
    MPR Coverage: 7
    Link Quality Fish Eye: Enable
    Link Quality Aging: 0.1
    Smart Gateway: Disable
    Link Quality Level: 2
    Hysteresis: Disable


Using New Interface, add both the wireless and Internal network. I added eth1 and vlan1. All settings are left at the defaults:
    Hello Interval: 5.0
    Hello Validity Time: 90.0
    TC Interval: 2.0
    TC Validity Time: 270.0
    MID Interval: 15.0
    Mid Validity Time: 90.0
    HNA Interval: 15.0
    HNA Validity Time: 90.0


    Dynamic Routing Interface: Disable



**************************************


Router 2 setup (for this example, I am using the WRT150N):

This router's IP address is 192.168.2.1/24

Wireless/Basic Settings:
    Wireless Mode: Adhoc
    Wireless Network Mode: BG-Mixed
    Wireless Network Name (SSID): meshtest
    Wireless Channel: 1
    Wireless SSID Broadcast: Enable
    Sensitivity Range (ACK Timing): 2000
    Network Configuration: Unbridged
    Multicast forwarding: Disable
    IP Address: 10.0.0.2
    Subnet Mask: 255.0.0.0


Wireless Security wl0
    Security Mode: WEP
    Default Transmit Key: 1
    Encryption: 128 bits
    Key 1: <my 26 char key>


Setup/Advanced Routing:
    Operating Mode: OLSR Router
    Gateway Mode: Disable
    Host Net Announce: 192.168.2.0 255.255.255.0
    Poll Rate: 0.1
    TC Redundancy: 2
    MPR Coverage: 7
    Link Quality Fish Eye: Enable
    Link Quality Aging: 0.1
    Smart Gateway: Disable
    Link Quality Level: 2
    Hysteresis: Disable


Using New Interface, add both the wireless and Internal network. I added eth2 and br1. All settings are left at the defaults:
    Hello Interval: 5.0
    Hello Validity Time: 90.0
    TC Interval: 2.0
    TC Validity Time: 270.0
    MID Interval: 15.0
    Mid Validity Time: 90.0
    HNA Interval: 15.0
    HNA Validity Time: 90.0


    Dynamic Routing Interface: Disable



**************************************

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)


I hope you can get this to work like I did.

Matt
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Mon May 28, 2012 20:02    Post subject: Reply with quote
@mzundel

simply request an wiki account from the ddwrt shop team.

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
jilebi
DD-WRT Novice


Joined: 21 Apr 2012
Posts: 13

PostPosted: Tue May 29, 2012 10:22    Post subject: Re: OLSR Guide for v24-sp2 Reply with quote
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.

This router's IP address is 192.168.1.1/24

Wireless/Basic Settings:
    Wireless Mode: Adhoc
    Wireless Network Mode: Mixed
    Wireless Network Name (SSID): meshtest
    Wireless Channel: 1
    Wireless SSID Broadcast: Enable
    Sensitivity Range (ACK Timing): 2000
    Network Configuration: Unbridged
    Multicast forwarding: Disable
    IP Address: 10.0.0.1
    Subnet Mask: 255.0.0.0


Wireless Security wl0
    Security Mode: WEP
    Default Transmit Key: 1
    Encryption: 128 bits
    Key 1: <my 26 char key>


Setup/Advanced Routing:
    Operating Mode: OLSR Router
    Gateway Mode: Disable
    Host Net Announce: <blank>
    Poll Rate: 0.1
    TC Redundancy: 2
    MPR Coverage: 7
    Link Quality Fish Eye: Enable
    Link Quality Aging: 0.1
    Smart Gateway: Disable
    Link Quality Level: 2
    Hysteresis: Disable


Using New Interface, add both the wireless and Internal network. I added eth1 and vlan1. All settings are left at the defaults:
    Hello Interval: 5.0
    Hello Validity Time: 90.0
    TC Interval: 2.0
    TC Validity Time: 270.0
    MID Interval: 15.0
    Mid Validity Time: 90.0
    HNA Interval: 15.0
    HNA Validity Time: 90.0


    Dynamic Routing Interface: Disable



**************************************


Router 2 setup (for this example, I am using the WRT150N):

This router's IP address is 192.168.2.1/24

Wireless/Basic Settings:
    Wireless Mode: Adhoc
    Wireless Network Mode: BG-Mixed
    Wireless Network Name (SSID): meshtest
    Wireless Channel: 1
    Wireless SSID Broadcast: Enable
    Sensitivity Range (ACK Timing): 2000
    Network Configuration: Unbridged
    Multicast forwarding: Disable
    IP Address: 10.0.0.2
    Subnet Mask: 255.0.0.0


Wireless Security wl0
    Security Mode: WEP
    Default Transmit Key: 1
    Encryption: 128 bits
    Key 1: <my 26 char key>


Setup/Advanced Routing:
    Operating Mode: OLSR Router
    Gateway Mode: Disable
    Host Net Announce: 192.168.2.0 255.255.255.0
    Poll Rate: 0.1
    TC Redundancy: 2
    MPR Coverage: 7
    Link Quality Fish Eye: Enable
    Link Quality Aging: 0.1
    Smart Gateway: Disable
    Link Quality Level: 2
    Hysteresis: Disable


Using New Interface, add both the wireless and Internal network. I added eth2 and br1. All settings are left at the defaults:
    Hello Interval: 5.0
    Hello Validity Time: 90.0
    TC Interval: 2.0
    TC Validity Time: 270.0
    MID Interval: 15.0
    Mid Validity Time: 90.0
    HNA Interval: 15.0
    HNA Validity Time: 90.0


    Dynamic Routing Interface: Disable



**************************************

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)


I hope you can get this to work like I did.

Matt
jilebi
DD-WRT Novice


Joined: 21 Apr 2012
Posts: 13

PostPosted: Tue Jun 05, 2012 4:25    Post subject: Re: OLSR Guide for v24-sp2 Reply with quote
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.

This router's IP address is 192.168.1.1/24

Wireless/Basic Settings:
    Wireless Mode: Adhoc
    Wireless Network Mode: Mixed
    Wireless Network Name (SSID): meshtest
    Wireless Channel: 1
    Wireless SSID Broadcast: Enable
    Sensitivity Range (ACK Timing): 2000
    Network Configuration: Unbridged
    Multicast forwarding: Disable
    IP Address: 10.0.0.1
    Subnet Mask: 255.0.0.0


Wireless Security wl0
    Security Mode: WEP
    Default Transmit Key: 1
    Encryption: 128 bits
    Key 1: <my 26 char key>


Setup/Advanced Routing:
    Operating Mode: OLSR Router
    Gateway Mode: Disable
    Host Net Announce: <blank>
    Poll Rate: 0.1
    TC Redundancy: 2
    MPR Coverage: 7
    Link Quality Fish Eye: Enable
    Link Quality Aging: 0.1
    Smart Gateway: Disable
    Link Quality Level: 2
    Hysteresis: Disable


Using New Interface, add both the wireless and Internal network. I added eth1 and vlan1. All settings are left at the defaults:
    Hello Interval: 5.0
    Hello Validity Time: 90.0
    TC Interval: 2.0
    TC Validity Time: 270.0
    MID Interval: 15.0
    Mid Validity Time: 90.0
    HNA Interval: 15.0
    HNA Validity Time: 90.0


    Dynamic Routing Interface: Disable



**************************************


Router 2 setup (for this example, I am using the WRT150N):

This router's IP address is 192.168.2.1/24

Wireless/Basic Settings:
    Wireless Mode: Adhoc
    Wireless Network Mode: BG-Mixed
    Wireless Network Name (SSID): meshtest
    Wireless Channel: 1
    Wireless SSID Broadcast: Enable
    Sensitivity Range (ACK Timing): 2000
    Network Configuration: Unbridged
    Multicast forwarding: Disable
    IP Address: 10.0.0.2
    Subnet Mask: 255.0.0.0


Wireless Security wl0
    Security Mode: WEP
    Default Transmit Key: 1
    Encryption: 128 bits
    Key 1: <my 26 char key>


Setup/Advanced Routing:
    Operating Mode: OLSR Router
    Gateway Mode: Disable
    Host Net Announce: 192.168.2.0 255.255.255.0
    Poll Rate: 0.1
    TC Redundancy: 2
    MPR Coverage: 7
    Link Quality Fish Eye: Enable
    Link Quality Aging: 0.1
    Smart Gateway: Disable
    Link Quality Level: 2
    Hysteresis: Disable


Using New Interface, add both the wireless and Internal network. I added eth2 and br1. All settings are left at the defaults:
    Hello Interval: 5.0
    Hello Validity Time: 90.0
    TC Interval: 2.0
    TC Validity Time: 270.0
    MID Interval: 15.0
    Mid Validity Time: 90.0
    HNA Interval: 15.0
    HNA Validity Time: 90.0


    Dynamic Routing Interface: Disable



**************************************

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)


I hope you can get this to work like I did.

Matt
cmobley7
DD-WRT Novice


Joined: 21 May 2017
Posts: 7

PostPosted: Fri May 26, 2017 3:34    Post subject: Reply with quote
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.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum