Jump to content

WAN as LAN (Legacy Firmware): Difference between revisions

m
Minor editing
m (Added introduction)
m (Minor editing)
Line 5: Line 5:


== RUT2xx and RUT9xx ==
== RUT2xx and RUT9xx ==
=== Open LAN section ===
=== Steps to follow===


Login to the router's WebUI and navigate to the LAN section ('''Network → LAN'''):
#Login to the router's WebUI and navigate to the LAN section ('''Network → LAN'''):[[File:How to disable dhcp enable relayd part 1 v2.png]]
 
#Under the Configuration section, click "Advanced Settings" and place a check mark next to the "Use WAN port as LAN" field and don't forget to save your settings:[[File:How to use wan as lan v1.png]]
[[File:How to disable dhcp enable relayd part 1 v2.png]]
 
=== Switch WAN interface to LAN ===
 
Under the Configuration section, click "Advanced Settings" and place a check mark next to the "Use WAN port as LAN" field and don't forget to save your settings:
 
[[File:How to use wan as lan v1.png]]


==RUT850==
==RUT850==


RUT850 has the possibility to act as a WLAN Access Point and WLAN Station same time. The WLAN station interface usually is dedicated to be one of the WAN interfaces. But it can also be used as LAN interface and allow a second network to be routed to the internet.
RUT850 has the possibility to act as a WLAN access point and WLAN station same time. The WLAN station interface usually is dedicated to be one of the WAN interfaces. But it can also be used as LAN interface and allow a second network to be routed to the internet.


The network architecture after the change would look as follows:
The network architecture after the change would look as follows:
Line 25: Line 18:
[[File:RUT850 STA as LAN.png|800px|STA as LAN]]
[[File:RUT850 STA as LAN.png|800px|STA as LAN]]


=== Steps to follow ===
=== Steps to follow===


# Add the RUT850 to a existing WLAN access point as written in manual  
#Add the RUT850 to an existing WLAN access point as written in manual
# Login to RUT850 via SSH  
#Login to RUT850 via SSH
# edit /etc/config files to move the interface wlan0 to the LAN security zone  
#edit /etc/config files to move the interface wan2 to the LAN security zone


After the change of the security zone to LAN incoming packets are forwarded to internet. They are treated the same as the packets coming in from access point interface br-lan of RUT850.
After the change of the security zone to LAN incoming packets are forwarded to internet. They are treated the same as the packets coming in from access point interface br-lan of RUT850.


===/etc/config/network ===
=== /etc/config/network===
Search for the station interface and change it from dhcp to a static IP in order to be able to use it as the gateway in the LAN segment it belongs to. I.e.:
Search for the station interface and change it from dhcp to a static IP in order to be able to use it as the gateway in the LAN segment it belongs to. I.e.:
  config interface 'wan2'
  config interface 'wan2'
Line 45: Line 38:
         option metric '10'
         option metric '10'


===/etc/config/firewall ===
===/etc/config/firewall===
Remove the interface wan2 from the WAN zone and add it to the LAN zone. i.e.:
Remove the interface wan2 from the WAN zone and add it to the LAN zone. i.e.:


Line 64: Line 57:
         option network 'ppp wan'
         option network 'ppp wan'


===/etc/config/wireless ===
===/etc/config/wireless===
No changes needed here. Just to show how the station mode wifi interface looks like
No changes needed here. Just to show how the station mode wifi interface looks like


Line 76: Line 69:
         option scan_sleep '10'
         option scan_sleep '10'
         option ssid 'Maltron1-2.4'
         option ssid 'Maltron1-2.4'
 
[[Category:Control & Configuration]]
[[Category:Control & Configuration]]
0

edits