Here is the "VPN-Part" of my startscript:
Code:
#------openVPN------
echo `date` "openVPN" >> /tmp/harddisk/log/start_hdd_prg.log
echo `date` "--erstelle VPN-Device" >> /tmp/harddisk/log/start_hdd_prg.log
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
insmod /opt/drivers/tun.o
echo `date` "--starte openVPN fьr PCKIG54" >> /tmp/harddisk/log/start_hdd_prg.log
/opt/sbin/openvpn --config /opt/etc/openvpn/PCKIG54.conf &
echo `date` "--starte openVPN fьr Neubauer" >> /tmp/harddisk/log/start_hdd_prg.log
/opt/sbin/openvpn --config /opt/etc/openvpn/neubauer.conf &
echo `date` "--цffne Firewall fьr PCKIG54" >> /tmp/harddisk/log/start_hdd_prg.log
iptables -A INPUT -p udp --sport 5253 -j ACCEPT
iptables -A OUTPUT -p udp --dport 5253 -j ACCEPT
echo `date` "--цffne Firewall fьr Neubauer" >> /tmp/harddisk/log/start_hdd_prg.log
iptables -A INPUT -p udp --sport 5252 -j ACCEPT
iptables -A OUTPUT -p udp --dport 5252 -j ACCEPT
I use UDP-Port 5253+5252