mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Force nat offload on wrt
This commit is contained in:
		
							parent
							
								
									51af004088
								
							
						
					
					
						commit
						0e871b0ac6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -78,7 +78,7 @@ uci -q batch <<-EOF >/dev/null
 | 
			
		|||
	add_list firewall.wan.masq_dest='!172.16.0.0/12'
 | 
			
		||||
	add_list firewall.wan.masq_dest='!192.168.0.0/16'
 | 
			
		||||
EOF
 | 
			
		||||
if [ "$(ubus call system board | jsonfilter -e '@.board_name')" = "bananapi,bpi-r2" ]; then
 | 
			
		||||
if [ "$(ubus call system board | jsonfilter -e '@.board_name')" = "bananapi,bpi-r2" ] || [ "$(ubus call system board | jsonfilter -e '@.board_name' | grep -i wrt)" != "" ]; then
 | 
			
		||||
	uci -q batch <<-EOF >/dev/null
 | 
			
		||||
	set firewall.@defaults[0].flow_offloading='1'
 | 
			
		||||
	set firewall.@defaults[0].flow_offloading_hw='1'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue