mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Allow forward to VPN
This commit is contained in:
		
							parent
							
								
									0469411969
								
							
						
					
					
						commit
						1a8d5c68bf
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		|  | @ -122,10 +122,19 @@ if [ "$(uci -q get firewall.gre_tunnel)" = "" ]; then | |||
| 		commit firewall | ||||
| 	EOF | ||||
| fi | ||||
| 
 | ||||
| if [ "$(uci -q get firewall.fwlantovpn)" = "" ]; then | ||||
| 	uci -q batch <<-EOF >/dev/null | ||||
| 		set firewall.@zone[0].auto_helper='0' | ||||
| 		set firewall.fwlantovpn=forwarding | ||||
| 		set firewall.fwlantovpn.src='lan' | ||||
| 		set firewall.fwlantovpn.dest='vpn' | ||||
| 		commit firewall | ||||
| 	EOF | ||||
| fi | ||||
| uci -q batch <<-EOF >/dev/null | ||||
| 	set firewall.@zone[0].mtu_fix='1' | ||||
| 	set firewall.zone_vpn.mtu_fix='1' | ||||
| 	commit firewall | ||||
| EOF | ||||
| 
 | ||||
| rm -f /tmp/luci-indexcache | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue