mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Fix: /etc/iptables/ dir absent on Raspbian
This commit is contained in:
		| @@ -281,8 +281,8 @@ function default_configuration() { | ||||
|     fi | ||||
|  | ||||
|     echo "Enabling persistent IP tables rules" | ||||
|     if [ ! -f "/etc/iptables/iptables.rules" ]; then | ||||
|         sudo cp "$webroot_dir/installers/iptables.rules" /etc/iptables || install_error "Unable to move iptables.rules to /etc/iptables" | ||||
|     if [ ! -f "/etc/iptables.raspap.rules" ]; then | ||||
|         sudo cp "$webroot_dir/installers/iptables.rules" /etc/iptables.raspap.rules || install_error "Unable to move iptables.rules" | ||||
|     fi | ||||
|  | ||||
|     if [ ! -f "/etc/systemd/system/iptables.service" ]; then | ||||
|   | ||||
| @@ -6,8 +6,8 @@ Before=sysinit.target | ||||
|  | ||||
| [Service] | ||||
| Type=oneshot | ||||
| ExecStart=/sbin/iptables-restore /etc/iptables/iptables.rules | ||||
| ExecReload=/sbin/iptables-restore /etc/iptables/iptables.rules | ||||
| ExecStart=/sbin/iptables-restore /etc/iptables.raspap.rules | ||||
| ExecReload=/sbin/iptables-restore /etc/iptables.raspap.rules | ||||
| ExecStop=/etc/iptables/flush-iptables.sh | ||||
| RemainAfterExit=yes | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user