Difference between revisions of "Netbsd vpn gateway basic setup"

From ENTS
Jump to: navigation, search
m
Line 6: Line 6:
  
 
change the path for the pkgsrc repo to:<br />  
 
change the path for the pkgsrc repo to:<br />  
ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All/
+
ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All/
  
pkg_add lynx<br />
+
pkg_add lynx<br />
pkg_add pico<br />
+
pkg_add pico<br />
pkg_add screen
+
pkg_add screen
  
 
---
 
---
Line 16: Line 16:
 
vi /etc/ifconfig.fxp0
 
vi /etc/ifconfig.fxp0
  
192.168.0.20{1,2} netmask 255.255.255.0  
+
192.168.0.20{1,2} netmask 255.255.255.0  
  
 
---
 
---
Line 22: Line 22:
 
vi /etc/sysctl.conf  
 
vi /etc/sysctl.conf  
  
net.inet.ip.forwarding=1
+
net.inet.ip.forwarding=1
  
 
---
 
---
Line 28: Line 28:
 
vi /etc/resolv.conf
 
vi /etc/resolv.conf
  
nameserver 64.59.184.13
+
nameserver 64.59.184.13
  
 
---
 
---
Line 34: Line 34:
 
vi /etc/rc.conf
 
vi /etc/rc.conf
  
hostname=chaosvpn{1,2}.440bx.net<br />
+
hostname=chaosvpn{1,2}.440bx.net<br />
defaultroute=192.168.0.1<br />
+
defaultroute=192.168.0.1<br />
sshd=yes
+
sshd=yes
  
 
---
 
---
  
useradd -m -G wheel chaosvpn_user<br />
+
useradd -m -G wheel chaosvpn_user<br />
passwd chaosvpn_user
+
passwd chaosvpn_user
  
 
---
 
---
  
 
https://wiki.hamburg.ccc.de/ChaosVPN:NetBSDHowto
 
https://wiki.hamburg.ccc.de/ChaosVPN:NetBSDHowto
 +
 +
---
 +
 +
prep to recompile the kernel<br />
 +
 +
mkdir /usr/src
 +
chown chaosvpn_user /usr/src
 +
 +
get the actual source
 +
 +
ftp -i ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-5.2/source/sets/
 +
mget *.tgz

Revision as of 12:50, 31 July 2013

vanilla install

---

vi /root/.profile

change the path for the pkgsrc repo to:

ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All/
pkg_add lynx
pkg_add pico
pkg_add screen

---

vi /etc/ifconfig.fxp0

192.168.0.20{1,2} netmask 255.255.255.0 

---

vi /etc/sysctl.conf

net.inet.ip.forwarding=1

---

vi /etc/resolv.conf

nameserver 64.59.184.13

---

vi /etc/rc.conf

hostname=chaosvpn{1,2}.440bx.net
defaultroute=192.168.0.1
sshd=yes

---

useradd -m -G wheel chaosvpn_user
passwd chaosvpn_user

---

https://wiki.hamburg.ccc.de/ChaosVPN:NetBSDHowto

---

prep to recompile the kernel

mkdir /usr/src
chown chaosvpn_user /usr/src

get the actual source

ftp -i ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-5.2/source/sets/
mget *.tgz
Personal tools
Namespaces

Variants
Actions
Navigation
Members
Toolbox