[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

iptables. Доступ к localhost.



Приветствую!

Есть

# Generated by iptables-save v1.3.8 on Sat Jun  7 16:55:23 2008
*filter
:INPUT ACCEPT [990:232122]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [60558:2893063]
-A INPUT -s 127.0.0.1 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i ppp0 -j ACCEPT
-A INPUT -i eth1 -j ACCEPT
-A INPUT -j DROP
-A FORWARD -i eth1 -o ppp0 -j ACCEPT
-A FORWARD -i ppp0 -o eth1 -j ACCEPT
-A OUTPUT -o ppp0 -j ACCEPT
COMMIT
# Completed on Sat Jun  7 16:55:23 2008

nmap -sS -O -F -PI -PT 127.0.0.1

Starting Nmap 4.20 ( http://insecure.org ) at 2008-06-07 16:55 IDT
Warning: OS detection for 127.0.0.1 will be MUCH less reliable because we did not find at least 1 open and 1 closed TCP port
Interesting ports on localhost (127.0.0.1):
Not shown: 1255 filtered ports
PORT   STATE SERVICE
80/tcp open  http

http://localhost
You tried to access the address http://127.0.0.1/, which is currently unavailable.

debian:/home/oleg# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:08:05:AC UP BROADCAST MULTICAST MTU:1500 Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
         Interrupt:21 Base address:0x1000

eth1 Link encap:Ethernet HWaddr 00:19:D1:A8:84:B1 inet addr:172.26.32.213 Bcast:255.255.255.255 Mask:255.255.224.0
         inet6 addr: fe80::219:d1ff:fea8:84b1/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:153671 errors:0 dropped:0 overruns:0 frame:0
         TX packets:9555 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         RX bytes:13504514 (12.8 MiB)  TX bytes:1058212 (1.0 MiB)
         Memory:d0400000-d0420000

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:58298 errors:0 dropped:0 overruns:0 frame:0
         TX packets:58298 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:2594732 (2.4 MiB)  TX bytes:2594732 (2.4 MiB)

ppp0 Link encap:Point-to-Point Protocol inet addr:xxx.xxx.xxx.xxx P-t-P:xxx.xxx.xxx.xxx Mask:255.255.255.255
         UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1460  Metric:1
         RX packets:2076 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2225 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:3
         RX bytes:758650 (740.8 KiB)  TX bytes:209654 (204.7 KiB)


Как разрешить доступ к localhost?

--
WBR, Oleg Gashev.



Reply to: