-
Notifications
You must be signed in to change notification settings - Fork 353
quick script to getting stunserver working on EC2 instance
Vaibhav Mule edited this page May 8, 2015
·
7 revisions
Following steps work for Ubuntu server on EC2
First, get second interface up and going
edit /etc/network/interfaces
add "eth0:1" to the "auto" line
add:
iface eth0:1 inet static address 10.0.0.xxx netmask 255.255.255.0
Reboot required to fully validate. "ifup -a" to bring up eth0:1 before the reboot
Now get the code compiled and running
sudo apt-get update
sudo apt-get install g++
sudo apt-get install git
sudo apt-get install make
sudo apt-get install libboost-dev
sudo apt-get install libssl-dev
cd stunserver
make
./stuntestcode (confirm all pass)
sudo cp stunclient /usr/bin/stunclient
sudo cp stunserver /usr/bin/stunserver
edit /etc/rc.local to launch /usr/bin/stunserver&
reboot via control panel