← Back to team overview

sslug-teknik team mailing list archive

Re: IPtables Problem

 

Frank Vestergaard Pedersen skrev:
Hej Per

Jeg tro ikke at dit problem ligger i din firewall (jeg har ikke nærlæst scriptet) men i din routning!


vil du ikke lige sende outputtet af en "ifconfig" og en "netstat -n"

/Frank
Hej Frank. Det kan du tro.

Ifconfig:
eth0      Link encap:Ethernet  HWaddr 00:00:24:C6:A0:FC
         inet addr:83.95.44.14  Bcast:83.255.255.255  Mask:255.255.255.252
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:2733709 errors:0 dropped:0 overruns:0 frame:0
         TX packets:3180500 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:1665316607 (1.5 GiB)  TX bytes:2886278288 (2.6 GiB)
         Interrupt:10 Base address:0x9000

eth0:0    Link encap:Ethernet  HWaddr 00:00:24:C6:A0:FC
inet addr:87.50.193.217 Bcast:87.255.255.255 Mask:255.255.255.252
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:10 Base address:0x9000

eth0:1    Link encap:Ethernet  HWaddr 00:00:24:C6:A0:FC
inet addr:87.50.193.218 Bcast:87.255.255.255 Mask:255.255.255.252
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         Interrupt:10 Base address:0x9000

eth1      Link encap:Ethernet  HWaddr 00:00:24:C6:A0:FD
         inet addr:172.16.0.1  Bcast:172.16.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:1376707 errors:0 dropped:2067 overruns:185 frame:0
         TX packets:1155620 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:492346873 (469.5 MiB)  TX bytes:952002778 (907.9 MiB)
         Interrupt:10 Base address:0xd000

eth2      Link encap:Ethernet  HWaddr 00:00:24:C6:A0:FE
         inet addr:172.16.10.1  Bcast:172.16.10.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:2248420 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1699492 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:2815134014 (2.6 GiB)  TX bytes:569288658 (542.9 MiB)
         Interrupt:10 Base address:0xf000

eth3      Link encap:Ethernet  HWaddr 00:00:24:C6:2E:BC
         inet addr:172.16.20.1  Bcast:172.16.20.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:299463 errors:0 dropped:9695 overruns:833 frame:0
         TX packets:409245 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:20861658 (19.8 MiB)  TX bytes:572653083 (546.1 MiB)
         Interrupt:5 Base address:0x1000

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:7230 errors:0 dropped:0 overruns:0 frame:0
         TX packets:7230 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:352220 (343.9 KiB)  TX bytes:352220 (343.9 KiB)

og Netstat -n: Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp 0 128 172.16.0.1:22 172.16.0.12:58298 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  8      [ ]         DGRAM                    1466     /dev/log
unix  2      [ ]         DGRAM                    565407
unix  3      [ ]         STREAM     CONNECTED     565406
unix  3      [ ]         STREAM     CONNECTED     565405
unix  2      [ ]         DGRAM                    557765
unix  2      [ ]         DGRAM                    482633
unix  2      [ ]         DGRAM                    355529
unix  2      [ ]         DGRAM                    1802
unix  2      [ ]         DGRAM                    1507

route: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 83.95.44.12 * 255.255.255.252 U 0 0 0 eth0 87.50.193.216 * 255.255.255.252 U 0 0 0 eth0 172.16.20.0 * 255.255.255.0 U 0 0 0 eth3 172.16.0.0 * 255.255.255.0 U 0 0 0 eth1 172.16.10.0 * 255.255.255.0 U 0 0 0 eth2 default atm2-0-10470.na 0.0.0.0 UG 0 0 0 eth0

Håber du har en løsning til dette. Også mere jeg ikke har leget med IPTABLES på det plan med flere statiske offentlige IP'er. Med Venlig Hilsen Per Jørgensen




References