firewall: Insert VPN rules at the beginning.
This commit is contained in:
		
							parent
							
								
									15c3382f2f
								
							
						
					
					
						commit
						e1b4d59b4f
					
				
							
								
								
									
										4
									
								
								firewall
								
								
								
								
							
							
						
						
									
										4
									
								
								firewall
								
								
								
								
							|  | @ -302,8 +302,8 @@ fw_stop() { | |||
| # VPN | ||||
| fw_vpn() { | ||||
|   # Allow all traffic throught VPN | ||||
|   $IPT -A INPUT -j ACCEPT -p all -i "${ILAN}" -m state --state NEW,RELATED,ESTABLISHED -m comment --comment "VPN in" | ||||
|   $IPT -A OUTPUT -j ACCEPT -p all -o "${ILAN}" -m state --state NEW,RELATED,ESTABLISHED,UNTRACKED -m comment --comment "VPN out" | ||||
|   $IPT -I INPUT -j ACCEPT -p all -i "${ILAN}" -m state --state NEW,RELATED,ESTABLISHED -m comment --comment "VPN in" | ||||
|   $IPT -I OUTPUT -j ACCEPT -p all -o "${ILAN}" -m state --state NEW,RELATED,ESTABLISHED,UNTRACKED -m comment --comment "VPN out" | ||||
| } | ||||
| 
 | ||||
| # ********************************************************************************************** | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue