Sziasztok, segítséget kérnék kábeles internet megosztásában.
Az internet egy HP ProLiant DL320-as szerverbe csatlakozik eth0 -ás interfészen. Az internetet az eth1 -esen keresztűl szeretném leosztani a lokális hálózatra. A Debiant frissen telepítettem minimal CD-ről (last stable 5.0.2)
A jelenlegi állapot:
A DHCP-n keresztül megkapják a hálózatra kötött számítógépek (XP és Vista) az összes beállítást:
#az egyik Vistas gép
ip: 192.168.2.114
mask: 255.255.255.0
átjáró: 192.168.2.1
DHCP kiszolg.: 192.168.2.1
DNS1: 213.46.246.53
DNS2: 213.46.246.54
NetBIOS a TCP/IP felett engedélyezve
A hálózati és megosztási központ szerint a gépen a hozzáférés "Helyi és internet". De ennek ellenére nem jönnek be a weblapok. Pingelni tudok bármilyen domain-t (pl: www.google.com).
Beállításaim:
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:78:06:19:08
inet addr:89.133.188.66 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:25767 errors:155 dropped:0 overruns:0 frame:155
TX packets:1552 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1854249 (1.7 MiB) TX bytes:196222 (191.6 KiB)
Interrupt:16
eth1 Link encap:Ethernet HWaddr 00:1b:78:06:19:09
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::21b:78ff:fe06:1909/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3522 errors:0 dropped:0 overruns:0 frame:0
TX packets:2147 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:388289 (379.1 KiB) TX bytes:685687 (669.6 KiB)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:448 errors:0 dropped:0 overruns:0 frame:0
TX packets:448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:76656 (74.8 KiB) TX bytes:76656 (74.8 KiB)
interfaces:
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
dhcpd.conf:
ddns-update-style none;
log-facility local7;
option domain-name "my.local";
default-lease-time 3600;
max-lease-time 7200;
authoritative;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.50 192.168.2.250;
option routers 192.168.2.1;
option domain-name-servers 213.46.246.53,213.46.246.54;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option netbios-node-type 8;
}
rc.local (időközben a minimálisra egyszerűsítettem):
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
a route parancs kimenete:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
89.133.188.0 * 255.255.252.0 U 0 0 0 eth0
default catv-89-133-191 0.0.0.0 UG 0 0 0 eth0
próbálkoztam dnsmasq-al is:
resolv-file=/etc/resolv.conf
interface=eth1
resolv.conf tartalma:
domain chello.hu
search chello.hu
nameserver 213.46.246.53
nameserver 213.46.246.54
sysctl.conf:
net.ipv4.ip_forward=1
a logokban mindössze ennyit találtam:
Jul 28 16:29:03 machine kernel: [ 2990.679848] IN=eth0 OUT=eth0 SRC=24.63.46.116 DST=89.133.191.31 LEN=131 TOS=0x00 PREC=0x00 TTL=112 ID=6941 PROTO=UDP SPT=46747 DPT=33150 LEN=111
ezek így rendben vannak?