Difference between revisions of "Eeebox"
From ElphelWiki
(→IP forwarding (in case the camera wants to see the big world)) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 12: | Line 12: | ||
===IP forwarding (in case the camera wants to see the big world)=== | ===IP forwarding (in case the camera wants to see the big world)=== | ||
− | sudo kate rc.local | + | 1. To |
− | + | sudo kate /etc/sysctl.conf | |
− | iptables -P FORWARD | + | Add |
+ | net.ipv4.ip_forward=1 | ||
+ | net.ipv4.conf.default.forwarding=1 | ||
+ | net.ipv4.conf.all.forwarding=1 | ||
+ | |||
+ | 2. To | ||
+ | sudo kate /etc/rc.local | ||
+ | Add | ||
+ | iptables -P FORWARD DROP | ||
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT | iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT | ||
iptables -A FORWARD -i eth0 -j ACCEPT | iptables -A FORWARD -i eth0 -j ACCEPT | ||
− | iptables -t nat -A POSTROUTING - | + | iptables -t nat -A POSTROUTING -j MASQUERADE |
+ | |||
+ | ===Links=== | ||
+ | * [https://help.ubuntu.com/community/Internet/ConnectionSharing ConnectionSharing in Ubuntu] |
Latest revision as of 12:41, 4 August 2011
Contents
Live-USB
Boot and install the system
Installation from the CVS
Get elphel353_80_install_from_cvs.sh open archive that contains the shell script and execute it. It is recommended that you create subdirectory in your home directory, i.e. "elphel_projects", move and execute elphel353_80_install_from_cvs.sh script there. Directory "distfiles" will be created there and used as a cache for software archives that will be downloaded during installation.
mkdir -p ~/elphel_projects; cd ~/elphel_projects wget "http://downloads.sourceforge.net/elphel/elphel353_80_install_from_cvs.sh.tar.gz" tar zxvf elphel353_80_install_from_cvs.sh.tar.gz ./elphel353_80_install_from_cvs.sh
IP forwarding (in case the camera wants to see the big world)
1. To
sudo kate /etc/sysctl.conf
Add
net.ipv4.ip_forward=1 net.ipv4.conf.default.forwarding=1 net.ipv4.conf.all.forwarding=1
2. To
sudo kate /etc/rc.local
Add
iptables -P FORWARD DROP iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -i eth0 -j ACCEPT iptables -t nat -A POSTROUTING -j MASQUERADE