Difference between pages "Drill Press 1" and "Netbsd vpn gateway basic setup"

From ENTS
(Difference between pages)
Jump to: navigation, search
 
m (prep to recompile the kernel)
 
Line 1: Line 1:
{{Template:Equipment|owner=ENTS |model=Model|serial=serial|arrived=Arrived Date|doesitwork=Working or Not working|contact=Contact |where=location}}<br>
 
__NOTOC__
 
  
== Current State ==
+
===basic setup after vanilla install===
Short Description of the state of the equipment
+
  
== Specifications ==
+
---
* '''Spec Name1''' Spec Value1
+
  
== Equipment Settings ==
+
vi /root/.profile
== Modifications ==
+
 
== Working on it ==
+
change the path for the pkgsrc repo to:<br />
== Known Problems ==
+
ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All/
== Future Ideas ==
+
 
 +
pkg_add lynx<br />
 +
pkg_add pico<br />
 +
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<br />
 +
defaultroute=192.168.0.1<br />
 +
sshd=yes
 +
 
 +
---
 +
 
 +
useradd -m -G wheel chaosvpn_user<br />
 +
passwd chaosvpn_user
 +
 
 +
---
 +
 
 +
continue with the steps at:
 +
 
 +
https://wiki.hamburg.ccc.de/ChaosVPN:NetBSDHowto
 +
 
 +
 
 +
---
 +
 
 +
===prep to recompile the kernel===
 +
 
 +
make directories
 +
 
 +
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
 +
 +
extract
 +
 
 +
for i in *.tgz
 +
do
 +
tar -xzf $i
 +
done
 +
 
 +
after you realize youve extracted to the wrong dir
 +
 
 +
mv /usr/src/usr/src/* /usr/src
 +
 
 +
copy config stuff
 +
 
 +
cd /usr/src/sys/arch/
 +
cp -r i386 i686
 +
cd i686/conf
 +
cp GENERIC i686_CVPN
 +
 
 +
start editing
 +
 
 +
pico i686_CVPN

Revision as of 14:02, 31 July 2013

basic setup after 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

---

continue with the steps at:

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


---

prep to recompile the kernel

make directories

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

extract

for i in *.tgz
do
tar -xzf $i 
done

after you realize youve extracted to the wrong dir

mv /usr/src/usr/src/* /usr/src

copy config stuff

cd /usr/src/sys/arch/
cp -r i386 i686
cd i686/conf
cp GENERIC i686_CVPN

start editing

pico i686_CVPN
Personal tools
Namespaces

Variants
Actions
Navigation
Members
Toolbox