2 2
vobo70

Banana Pi R2 - wifi hotspot - best practices

Recommended Posts

Hello,

I have Banana Pi R2 with armbian bionic. Have two wlan cards both USB, both works. 

But earlier when I used openwrt on x86 my both wlan and lan were bridged and had one IP - which was router IP.

Here with armbian wlan hotspot get other IP than armbian itself. Is there any way to change it to bridge?
Or best practices is to leave it as is?

regards,

Maciek

Share this post


Link to post
Share on other sites

For hotspots, there are 3 modes :
Bridge : Wifi IP address are in same range as your network and it's your DHCP deliver wifi IP address
Routing : Wifi IP address are not in the same range as your network, wifi IP address are deliver per the hotspot ; your network must be "informed" the range IP of wifi ( routing table )
NAT : The wifi is full managed per the hotspot ; on your network you see only connection initiated per the hotspot
Each mode have advantages and inconvenient, that depending your wifi using

Share this post


Link to post
Share on other sites

I done some thing no bad on my 2 hotspot in routing mode with a script to manage IPTABLES rules

The script firewall_rules.sh in /etc/init.d/ load pre-defined rules in /etc/firewall.d/

firewall_rules.sh

Share this post


Link to post
Share on other sites
On 9/16/2019 at 7:11 PM, Igor said:


We used to have both, but maintaining both become too much when there is little help ... I would like to see both + some basic firewall config, but don't know when :) 
https://github.com/armbian/config/blob/master/debian-config-jobs#L513

I think with my firewall script it is possible to do different set of rules ( Bridge, Routing, NAT ) can be enable according to desired mode

Share this post


Link to post
Share on other sites

.... first a bridge mode has to be enables back, solve problems, test, test, test implement your ruleset with possible adjustments and test, test, test.

 

I am unable to make big changes ATM. Can only review at best.

 

Wrote on mobile

 

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

I don't understand the mounting/mapping/bridging of ethernet ports on Banana Pi R2 : eth0, br0, wan, lan1-2-3-4
br0 is the bridge but in eth0, br0, wan, lan1-2-3-4 what is physical interface or logical interface ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
2 2