Changes

1,335 bytes added ,  12:32, 19 February 2022
Added config files needed to be changed
Line 16: Line 16:     
The network architecture after the change would look as follows:
 
The network architecture after the change would look as follows:
[[File:RUT850 STA as LAN.png|600px|STA as LAN]]
     −
Here are the steps to follow:
+
[[File:RUT850 STA as LAN.png|800px|STA as LAN]]
 +
 
 +
=== Steps to follow ===
    
# Add the RUT850 to a existing WLAN access point as written in manual  
 
# Add the RUT850 to a existing WLAN access point as written in manual  
Line 25: Line 26:     
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 ===
 +
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'
 +
        option proto 'static'
 +
        option backup '0'
 +
        option ifname 'wlan0'
 +
        option ipaddr '192.168.2.254'
 +
        option netmask '255.255.255.0'
 +
        option enabled '1'   
 +
        option disabled '0' 
 +
        option metric '10'
 +
 +
===/etc/config/firewall ===
 +
Remove the interface wan2 from the WAN zone and add it to the LAN zone. i.e.:
 +
 +
config zone
 +
        option name 'lan'
 +
        option network 'lan wan2'
 +
        option input 'ACCEPT'
 +
        option output 'ACCEPT'
 +
        option forward 'ACCEPT'
 +
 +
config zone
 +
        option name 'wan'
 +
        option input 'REJECT'
 +
        option output 'ACCEPT'
 +
        option forward 'REJECT'
 +
        option masq '1'
 +
        option mtu_fix '1'
 +
        option network 'ppp wan'
 +
 +
===/etc/config/wireless ===
 +
No changes needed here. Just to show how the station mode wifi interface looks like
 +
 +
config wifi-iface
 +
        option network 'wan2'
 +
        option encryption 'psk2'
 +
        option device 'radio0'
 +
        option key '>your password<'
 +
        option user_enable '1'
 +
        option mode 'sta'
 +
        option scan_sleep '10'
 +
        option ssid 'Maltron1-2.4'
 +
 
[[Category:Control & Configuration]]
 
[[Category:Control & Configuration]]
0

edits

Navigation menu