Update tinc-up.tmpl
This commit is contained in:
		
							parent
							
								
									2309191993
								
							
						
					
					
						commit
						84b6bb9a64
					
				| @ -1,5 +1,5 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
| sysctl -w net.ipv6.conf.\$INTERFACE.disable_ipv6=1 | sysctl -w net.ipv6.conf.\$INTERFACE.disable_ipv6=1 || echo "[WARNING] IPv6 couldn't be disabled on the \$INTERFACE interface!  Make sure you disable IPv6 at the host level with sysctl -w net.ipv6.conf.all.disable_ipv6=1" | ||||||
| 
 | 
 | ||||||
| {{ if len "${vip:-}" }}ifconfig "\$INTERFACE:0" ${vip}{{ end }} | {{ if len "${vip:-}" }}ifconfig "\$INTERFACE:0" ${vip}{{ end }} | ||||||
| {{ if len "${ip_aliases:-}" }}{{ range "$ip_aliases" | split "," }}iptables -t nat -I PREROUTING -d {{ . }} -i \$INTERFACE -j DNAT --to-destination ${tinc_peer_address} | {{ if len "${ip_aliases:-}" }}{{ range "$ip_aliases" | split "," }}iptables -t nat -I PREROUTING -d {{ . }} -i \$INTERFACE -j DNAT --to-destination ${tinc_peer_address} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 sump pump
						sump pump