본문 바로가기

Project VPN

Ubuntu 11.04 Desktop 설치후 개발환경 설정 (Frees/Wan VPN)

root 설정

sudo passwd root


root 자동 로그인
vi /etc/gdm/custom.conf


[daemon]
TimedLoginEnable=true
AutomaticLoginEnable=true
TimeLogin=root
AutomaticLogin=root
TimedLoginDelay=30
DefaultSession=gnome

# http://bluemir7.tistory.com/107


ubuntu 설치후 gcc
sudo apt-get install build-essential
# http://chunsinn.egloos.com/1244595


터미널 설정
sudo apt-get install nautilus-open-terminal
# http://clccclcc.egloos.com/9673397

프로그램 설치
apt-get install vim
apt-get install ncftpget
apt-get install gmp-doc

frees/wan source down
ncftpget ftp://ftp.xs4all.nl/pub/crypto/freeswan/freeswan-\

커널 컴파일에 필요한 ncurses 라이브러리 설치(make menuconfig)
$ cd ~/Downloads
$ wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.7.tar.gz
$ cd ~
$ tar xvfz Downloads/ncurses-5.7.tar.gz
$ ln -s ncurses-5.7 ncurses
$ cd ncurses
$ mkdir install
$ ./configure
$ make
$ make install


bridge-utils 설치
apt-get install bridge-utils
설정 :
brctl addbr br0
brctl stp br0 eth0 on
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth0 0.0.0.0 promisc up
ifconfig eth1 0.0.0.0 promisc up
ifconfig br0 <IP> promisc up
# http://jikime.tistory.com/436


route 설정
route add default gw <GWIP>


wireshark 설치
apt-get install wireshark