lundi 24 septembre 2012
iptables
3 sudo vi /etc/network/interfaces
10 sudo vi /etc/resolv.conf
35 sudo vi /etc/network/interfaces
37 sudo vi /etc/default/dhcp3-server
38 sudo /etc/init.d/dhcp3-server restart
39 sudo vi /etc/dhcp3/dhcpd.conf
60 sudo sysctl net.ipv4.ip_forward=1
61 sudo cat /proc/sys/net/ipv4/ip_forward
73 vi iptables.start
74 chmod 777
75 chmod 777 iptables.start
94 echo 'net.ipv4.ip_forward=1' >>/etc/sysctl.conf
95 sudo echo 'net.ipv4.ip_forward=1' >>/etc/sysctl.conf
96 sudo echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf
137 ifconfig
138 ./iptables.start
139 sudo ./iptables.start
140 sudo cp iptables.start /etc/init.d/iptables
141 sudo chmod 755 /etc/init.d/iptables
142 sudo /etc/init.d/iptables start
143 sudo /etc/init.d/iptables status
144 sudo vi /etc/init.d/iptables
145 sudo update-rc.d iptables defaults
149 itop
161 glogg
init.d/iptables
#!/bin/bash
#sysctl net.ipv4.ip_forward=1
#sudo update-rc.d monIptables defaults
#eth0 internet
iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire