garywill / linux-router

Set Linux as router in one command. Support Internet sharing, redsocks, Wifi hotspot, IPv6. Can also be used for routing VM/containers 🛰️ (也欢迎关注B站 https://space.bilibili.com/2123686105 )
GNU Lesser General Public License v2.1
1.71k stars 152 forks source link

lnxrouter for openSUSE (tested on openSUSE Tumbleweed) #20

Closed Evan-aja closed 2 years ago

Evan-aja commented 3 years ago

this is a minor modification to the original script, with this change lnxrouter can be used in openSUSE Tumbleweed as normal. the script replaces the original hostapd.conf file in /etc, as it seems like openSUSE's version of hostapd cannot read configuration file outside /etc. this might warrant a backup of the original hostapd.conf file, but I don't want to change the script too much to make a backup file for the original hostapd.conf file and return in on cleanup as I'm afraid of breaking the script or even the system if not careful.

garywill commented 3 years ago

Thanks ! Now opensuse users have a workaround.

Yet, I'm not merging this today, cause I found a very very similar issue https://github.com/oblique/create_ap/issues/103#issuecomment-136863348 dnsmasq couldn't read config file. (The strace shows same permission deny as this also) It was caused by apparmor and solve by changing apparmor settings https://github.com/oblique/create_ap/commit/38ebab212234f47b9569721d2d2a058c9d4ca525

So I guess this problem can be solved by changing some system security service settings