mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Change omrvpn interface MTU to jumbo frame (at least for test...)
This commit is contained in:
		
							parent
							
								
									a013fc112c
								
							
						
					
					
						commit
						ff90fb808f
					
				
					 2 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -241,9 +241,7 @@ done
 | 
			
		|||
 | 
			
		||||
uci -q batch <<-EOF >/dev/null
 | 
			
		||||
	set firewall.zone_lan.mtu_fix='1'
 | 
			
		||||
	set firewall.zone_vpn.mtu_fix='1'
 | 
			
		||||
EOF
 | 
			
		||||
uci -q batch <<-EOF >/dev/null
 | 
			
		||||
	set firewall.zone_vpn.mtu_fix='0'
 | 
			
		||||
	set firewall.@include[0].reload='1'
 | 
			
		||||
	commit firewall
 | 
			
		||||
EOF
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,7 +12,7 @@ if [ "$(uci -q get network.omrvpn)" = "" ]; then
 | 
			
		|||
		set network.omrvpn.leasetime=12h
 | 
			
		||||
		set network.omrvpn.type=tunnel
 | 
			
		||||
		set network.omrvpn.txqueuelen=100
 | 
			
		||||
		set network.omrvpn.metric=1200
 | 
			
		||||
		set network.omrvpn.metric=9000
 | 
			
		||||
		commit network
 | 
			
		||||
	EOF
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			@ -146,7 +146,12 @@ if [ "$(uci -q get glorytun-udp.vpn.key)" = "" ] && [ "$(uci -q get glorytun.vpn
 | 
			
		|||
	uci -q commit glorytun-udp
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ "$(uci -q get network.omrvpn.metric)" = "1200" ]; then
 | 
			
		||||
	uci -q batch <<-EOF >/dev/null
 | 
			
		||||
		set network.omrvpn.metric=9000
 | 
			
		||||
		commit network
 | 
			
		||||
	EOF
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
rm -f /tmp/luci-indexcache
 | 
			
		||||
exit 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue