Dave-ee Jones Posted December 21, 2017 Share Posted December 21, 2017 (edited) Hoi! So, for the sake of theoretical scenarios, how would one disable DHCP and/or DNS? I believe they both run under 'dnsmasq' which means if I disabled DHCP by stopping 'dnsmasq' I would also kill DNS. I want to be able to kill one or the other, or both. Just to be annoying. :) Anyone know how to do this? I can't find a boolean value in the configs that allow you to turn off DNS/DHCP and then restart the 'dnsmasq' service. Also, if I restarted the PS after making these changes (via UCI I would presume..) will they revert back to the original configuration (which is what I want just in case something breaks). Any help is appreciated! Cheers. Edited December 21, 2017 by Dave-ee Jones Quote Link to comment Share on other sites More sharing options...
Dave-ee Jones Posted December 21, 2017 Author Share Posted December 21, 2017 Disabling DNS is fairly easy, apparently. uci set dhcp.dnsmasq.port=0 Setting the port to 0 disables the DNS server. DHCP is a different matter.. Quote Link to comment Share on other sites More sharing options...
Elducko Posted February 19, 2018 Share Posted February 19, 2018 I apologize if I'm posting at the wrong place. But Dave-ee Jones seems to have dealt with something related to this in the past. Is it possible to set a static IP or request a preferred IP from the DHCP server, for the squirrel, when it is on switch 3 mode? I've been trying to set it here -- config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'dhcp' option ifname 'eth0 eth1' -- changing the proto to static an setting the ipaddr value and gateway or jsut adding a ipaddr '192.xxx.xxx.x" under the option proto 'dhcp' My problem is that when i run /etc/init.d/network reload or restar. The vpn connection freezes and all i can do is manually reboot the squirrel. Quote Link to comment Share on other sites More sharing options...
Elducko Posted February 19, 2018 Share Posted February 19, 2018 clearly I'm new to this. Forgot to add that once the PS is done booting the configuraion changes that I made havent applied to the etc/config/network file Quote Link to comment Share on other sites More sharing options...
Elducko Posted February 19, 2018 Share Posted February 19, 2018 Finally figured it out. Changing the usr/lib/network_config and adding a configure interface 'br-lan' configuration did it for me. I also noticed that I totally invaded your post instead of creating a new one. hope is not a problem. Quote Link to comment Share on other sites More sharing options...
Dave-ee Jones Posted February 19, 2018 Author Share Posted February 19, 2018 That's okay, it's not entirely off topic :) You can change the IP of the PS, but if you're running a VPN you will probably need to stop the OpenVPN service, restart the network and then start the OpenVPN service again. uci set network.lan.ipaddr="10.0.0.1" uci commit /etc/init.d/openvpn stop /etc/init.d/network reload sleep 10 # Might need to reload the config here, but I don't think it's required /etc/init.d/openvpn start I haven't actually played around with creating more interface configurations, but it does sound interesting so I will have to look into it.. Thanks for the input! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.