mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Implement Client configuration
- add mobile date network devices and configuration - add client configuration via udev - add GUI under networking tab - add scripts to handle mobile data devices
This commit is contained in:
		@@ -35,7 +35,7 @@ echo "Checking iptables rules"
 | 
			
		||||
rules=(
 | 
			
		||||
"-A POSTROUTING -o tun0 -j MASQUERADE"
 | 
			
		||||
"-A FORWARD -i tun0 -o ${interface} -m state --state RELATED,ESTABLISHED -j ACCEPT"
 | 
			
		||||
"-A FORWARD -i wlan0 -o tun0 -j ACCEPT"
 | 
			
		||||
"-A FORWARD -i ${interface} -o tun0 -j ACCEPT"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
for rule in "${rules[@]}"; do
 | 
			
		||||
 
 | 
			
		||||
@@ -42,4 +42,11 @@ www-data ALL=(ALL) NOPASSWD:/bin/chmod o+r /tmp/dnsmasq.log
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/bin/cp /tmp/dnsmasqdata /etc/dnsmasq.d/090_adblock.conf
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/bin/cp /tmp/dnsmasq_custom /etc/raspap/adblock/custom.txt
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/etc/raspap/adblock/update_blocklist.sh
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/usr/bin/socat - /dev/ttyUSB[0-9]
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/usr/local/sbin/switchClientState.sh up
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/usr/local/sbin/switchClientState.sh down
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/bin/sed -i * /etc/wvdial.conf
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/bin/sed -i * /etc/udev/rules.d/80-raspap-net-devices.rules
 | 
			
		||||
www-data ALL=(ALL) NOPASSWD:/usr/bin/tee -a /etc/udev/rules.d/80-raspap-net-devices.rules
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user