kil-linux
(usa Ubuntu)
Enviado em 23/06/2012 - 02:34h
turma me ajudem.
preciso compartilhar minha internet.
seghuemeus arquivos.
networ/interfaces
auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet dhcp
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
resolve.conf
nameserver 192.168.1.254
nameserver 10.0.0.1
domain lan
search la
dhcp.
interfaces="eth0";
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
#configuração basica
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.10 10.0.0.100;
option domain-name-servers 10.0.0.1;
# option domain-name 10.1.1.1;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
default-lease-time 600;
max-lease-time 7200;
}
rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
modprobe iptables_nat
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADE
echo "1" >/proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -s SUA_REDE_LOCAL/MASCARA -p tcp --dport 80 -j REDIRECT --to-port 3128
exit 0
oque esta acontecendo de errado.