Open WRT VM script - instructions for dummies #4045
Replies: 3 comments 2 replies
-
This is how I Allow OpenWrt Router Admin AccessFirst some background. At one point the script allowed accessing the luci interface via the wan ip address. The script was changed (see here) to disable this capability due to security concerns. Below I outline how I allow OpenWrt admin access. I'm not sure if it's the most secure, so use at you own risk. My use-case has the wan interface exposed to a local subnet, not the Internet. I would not use this technique if the wan interface was exposed to the Internet, as it is not secure enough for me. I know you could access the luci interface and ssh via the lan interface (ip address 192.168.1.1) on the Proxmox vmbr0 network bridge, but for my use-case I find this way easier as it was similar to how I used the original tteck authored script. Note as copy/paste is not available in the Proxmox VM console, I keep the number of Proxmox VM console commands to a minimum to reduce the amount of typing and then switch to ssh and copy/paste commands en masse. Once the VM has started, in the Proxmox host > openwrt vm > Console I type In the Proxmox host > openwrt vm > Console I type the following commands to temporarily allow all traffic to the device so I can SSH into the VM (this will make the device very insecure ):
On my device, I SSH into the Openwrt VM using wan-ipaddress found above. I paste the following into the ssh session, to force https
I paste the following into the ssh session, to add a rule to allow my device to access ssh and luci via the wan interface.
Notes:
I paste the following into the ssh session, to reverse the settings used earlier that allowed all traffic to the device.
From my device I can now access:
I can then proceed to make the router more secure (add password, firewall rules, setup ssh keys, etc.) and setup for my use-case. I know this is an old post, but I'm posting here hoping it helps someone out. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your explanation on why is seems "unreachable" when the script has completed. I might have run into problems because the default IP is 192.168.1.1 which is already in use on my network. I can see that the WAN-part gets another ip, but none of the ip's reply to anything. Anyways, thanks again for your helpful message. I'll probably just do a normal install if I get around to it. |
Beta Was this translation helpful? Give feedback.
-
Thanks again for some even clearer suggestions. So, I dug some more into it, and ran the script some more times etc. also in advanced mode etc. As soon as I removed the VLAN-tagging in Proxmox, I was able to reach the GUI on BOTH ip's. So well, to conclude:
So, yes I guess the script could use a "getting started" document. :-D |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've used many of the scripts here with great success, however the OpenWRT one does not work for me.
I've tried using it completely default, and also by setting parameters like LAN IP etc. but in none of these cases I was able to get to the user interface.
Like most of the other scripts I was expecting that I would be able to go the IP, and see the user interface, and start setting up the "router". But at this point I simply do not know if the script is not working or if it's just me being incompetent :-D
Can there be added some sort of "getting started"-instructions to the script?
It is a bit of a special case using this on a VM compared to the devices where it is usually installed. For example the default install picks the ip 192.168.1.1, which will probably lead to conflicts for many users who already have their main router on this ip. Perhaps the script needs to be adjusted a bit since this "VM install" is a rather special case?
Beta Was this translation helpful? Give feedback.
All reactions