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

Feature request: Web interface #25

Open smopro opened 2 years ago

smopro commented 2 years ago

Can you make interface for simple using? Maybe connected clients listing, manage instances, edit interfaces which be WAN and LAN on startup.

garywill commented 2 years ago

Thank you for feedback! That's a reasonable feature request.

connected clients listing, manage instances

That can be done by CLI already. Still, GUI is more friendly.

Let me think about some possible ways:

1

If we are talking about just a usable GUI, thanks to lakinduakash, there's a GTK GUI for create_ap: linux-wifi-hotspot, which can also be forked and ported for linux-router.

Or, making a new web GUI is okay too.

2

If we're talking about GUI interface with live-editing (live-changing settings without restarting hotspot),

hostapd and LAN interface's settings shouldn't be restarted, or clients lose connection. Others like dnsmasq and iptables configurations can restart.

That would be mostly a re-make of the script: change its non-interactive operation to interactive.


1 is more realistic, I think.

I would be happy to see a GUI interface! Which can be third-party project. I'm willing to cooperate and help. (I think I'm not going to have the time and not qualified enough for creating a fancy GUI)

smopro commented 2 years ago

I think about lightweight analog OpenWRT LuCI because openwrt just soft router, but with your script we can use any system (in my case archlinux arm on android tv box as mediaserver - DLNA, FTP, torrents and with your script setup interfaces WAN and LAN). GUI less usable if device not connected to display and keyboard\mouse, ssh not usable for beginners.