Change to new addresses
This commit is contained in:
		
							parent
							
								
									9ec7840e92
								
							
						
					
					
						commit
						2b9601576b
					
				
					 2 changed files with 5 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -6,20 +6,13 @@ boot() {
 | 
			
		|||
        echo zz_custom started | logger
 | 
			
		||||
        /bin/sleep 10
 | 
			
		||||
 | 
			
		||||
        # route to the vpn and to the dmz via WAN
 | 
			
		||||
        ALBUFER0=78.46.150.244/32
 | 
			
		||||
        ALBUFER1=144.76.47.106/32
 | 
			
		||||
        # route to the dmz via WAN
 | 
			
		||||
        QFDMZ=212.86.210.200/29
 | 
			
		||||
        QFGW=192.168.2.1
 | 
			
		||||
        /sbin/ip route add $ALBUFER0 via $QFGW dev br-wan
 | 
			
		||||
        /sbin/ip route add $ALBUFER1 via $QFGW dev br-wan
 | 
			
		||||
        /sbin/ip route add $QFDMZ via $QFGW dev br-wan
 | 
			
		||||
 | 
			
		||||
        # get client ip on br-client
 | 
			
		||||
        /sbin/udhcpc -p /var/run/udhcpc-br-client.pid -i br-client -x hostname:ffka-querfunk
 | 
			
		||||
 | 
			
		||||
        # and ipv6 fixed
 | 
			
		||||
        /sbin/ip -6 addr add 2a03:2260:a:a::1:66/64 dev br-client
 | 
			
		||||
        # ipv6 fixed
 | 
			
		||||
        /sbin/ip -6 addr add 2a03:2260:a:b::1:66/64 dev br-client
 | 
			
		||||
 | 
			
		||||
        # start stream proxy
 | 
			
		||||
        /usr/bin/socat TCP-LISTEN:8000,reuseaddr,fork,su=nobody,pf=ip6 TCP:212.86.210.204:8000 &
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								install
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								install
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
ffka_querfunk_mgmt=2a03:2260:a:a:ea94:f6ff:fea1:98f6
 | 
			
		||||
ffka_querfunk_mgmt=2a03:2260:a:b:ea94:f6ff:fea1:98f6
 | 
			
		||||
 | 
			
		||||
if ! ping6 -c1 $ffka_querfunk_mgmt &>/dev/null; then
 | 
			
		||||
  echo 'ffka-querfunk is offline'
 | 
			
		||||
| 
						 | 
				
			
			@ -19,7 +19,7 @@ ssh root@$ffka_querfunk_mgmt "reboot"
 | 
			
		|||
 | 
			
		||||
echo -n "Waiting for ffka-querfunk to come online after rebooting"
 | 
			
		||||
sleep 3
 | 
			
		||||
ffka_querfunk=2a03:2260:a:a::1:66
 | 
			
		||||
ffka_querfunk=2a03:2260:a:b::1:66
 | 
			
		||||
while ! ping6 -c1 $ffka_querfunk &>/dev/null; do
 | 
			
		||||
  echo -n "."
 | 
			
		||||
  sleep 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue