Farlock.org

Farlock.org

What you want to hack today?

Farlock.org RSS Feed
 
 
 
 

VPN Client with NSLU2 and OpenWrt

  • Login again in your hacked nslu2
  • Install needed package:

# ipkg install ppp openvpn chat openntpd

# ipkg install http://downloads.openwrt.org/snapshots/ixp4xx/packages/hwclock_2.13.0.1-2_armeb.ipk

  • And let configure them:

# vi /etc/ntpd.conf

server 193.204.114.232
server 193.204.114.233
server
ntp1.inrim.it # or a ntp server near you
server
ntp2.inrim.it # or another ntp server near you
listen on *

# /etc/init.d/ntpd disable

# /etc/init.d/ntpd start

  • We use a bridge configuration for network, edit /etc/config/network and add this line in eth0 section:

option type ‘bridge’

  • Copy gprsd.sh in /usr/scripts
  • Copy gprsd in /etc/default and edit it
  • Copy custom-user-startup into /etc/init.d/

# /etc/init.d/custom-user-startup enable

  • run # crontab -e and add

*/3 * * * * /usr/script/gprsd.sh checkrunning &

  • copy chat and peers directory into /etc/ppp
  • Copy openvpn into /etc
  • Edit /etc/default/openvpn, add “ENABLED=1” and change config file
  • Edit /etc/init.d/openvpn, add “ENABLED=0″ and this to start () function:

if [ "$ENABLED" != "1" ] ; then
echo “$BIN disabled, check $DEFAULT”
exit 0
fi

  • run #/etc/init.d/openvpn enable
  • bla bla bla (nice in openvpn.conf)

Leave a Reply

You must be logged in to post a comment.