Ok, I followed the guide located at http://www.slideshare.net/Kami_/freebsd-ipfw-and-openvpn-21-server to the T, however open fails to run at boot. I have FreeBSD 9.1 with OpenVPN 2.2 port. I tried similar scripts that failed as well. Best I got was I eliminated the up.sh, then it didn't fail. Thoughts?
Here asre the log file results:
Here is the up.sh script:
Here is down.sh:
Here is part of server.conf:
re0 is the network card that faces the internet, and I have another network card that faces the internal network called re1.
Thank you for your time.
Dana
Here asre the log file results:
Code:
Wed Apr 17 20:38:21 2013 Socket Buffers: R=[41600->65536] S=[9216->65536]
Wed Apr 17 20:38:21 2013 TUN/TAP device /dev/tap0 opened
Wed Apr 17 20:38:21 2013 /usr/local/etc/openvpn/up.sh tap0 1500 1574 init
Wed Apr 17 20:38:21 2013 WARNING: Failed running command (--up/--down): could not execute external program
Wed Apr 17 20:38:21 2013 Exiting
Here is the up.sh script:
Code:
#!/bin/sh
/sbin/ifconfig bridge0 create
/sbin/ifconfig bridge0 addm re0 addm tap0 up
/sbin/ifconfig tap0 up
Here is down.sh:
Code:
#!/bin/sh
/sbin/ifconfig bridge0 deletem tap0
/sbin/ifconfig bridge0 destroy
/sbin/ifconfig tap0 destroy
Here is part of server.conf:
Code:
p /usr/local/etc/openvpn/up.sh
down /usr/local/etc/openvpn/down.sh
server-bridge 192.168.255.254 255.255.255.0 192.168.255.25 192.168.255.99
proto udp
port 22222
dev tap0
comp-lzo yes
keepalive 15 60
client-to-client
client-config-dir ccd
push "route 192.168.255.0 255.255.255.0"
push "dhcp-option DNS 192.168.255.254"
push "redirect-gateway re0"
re0 is the network card that faces the internet, and I have another network card that faces the internal network called re1.
Thank you for your time.
Dana