PDA

View Full Version : Problem with services listening on 0.0.0.0



lynxus
12th August 2009, 01:50 PM
Hi guys,

Ive got aproblem with my routing by the looks of things.

ONLY services listening on an actual IP are contatable from the internet.
How can i fix this? / put my routing back to default.. ( incase i screwed something earlier ? )

[root@server217-174-254-30 ~]# netstat -tunap | grep LIST
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2774/mysqld
tcp 0 0 0.0.0.0:783 0.0.0.0:* LISTEN 2297/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2270/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 4378/perl
tcp 0 0 217.174.254.30:80 0.0.0.0:* LISTEN 2815/httpd
tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN 2828/httpd-matrixsa
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2681/vsftpd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2628/cupsd
tcp 0 0 217.174.254.30:443 0.0.0.0:* LISTEN 2815/httpd
tcp 0 0 :::22 :::* LISTEN 2614/sshd



[root@server217-174-254-30 ~]# ip route
217.174.252.0/22 dev eth0 proto kernel scope link src 217.174.254.30
169.254.0.0/16 dev eth0 scope link
default via 217.174.252.1 dev eth0

root@server217-174-254-30 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:99:56:C0:53
inet addr:217.174.254.30 Bcast:217.174.255.255 Mask:255.255.252.0
inet6 addr: fe80::219:99ff:fe56:c053/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10126 errors:0 dropped:0 overruns:0 frame:0
TX packets:6537 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1373487 (1.3 MiB) TX bytes:4484216 (4.2 MiB)
Memory:fc400000-fc420000

eth0:0 Link encap:Ethernet HWaddr 00:19:99:56:C0:53
inet addr:217.174.254.115 Bcast:217.174.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:fc400000-fc420000

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:241 errors:0 dropped:0 overruns:0 frame:0
TX packets:241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:305242 (298.0 KiB) TX bytes:305242 (298.0 KiB)