@ugob
I googled around 4 hours _before_ I posted this thread, therefore I already read your proposed link. posting in a forum is always the last solution for me.... -rws--x--x 1 root bin 31088 Sep 25 03:10 /bin/ping* I can ping anywhere (google.com) but not localhost, not even the ip-adresses bound to the nic's root@m3:~# ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. ping: sendmsg: Operation not permitted --- 192.168.1.1 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms root@m3:~# ping 80.219.41.x PING 80.219.41.x (80.219.41.x) 56(84) bytes of data. ping: sendmsg: Operation not permitted --- 80.219.41.x ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms I just installed slackware 9.1 over nfs (nfs server is mandrake 9.1) which didn't cause any problem. I didn't install anything else but the original files from the slackware distro. @davidphilips I also tried ldconfig, but without any effects....below the output of nsswitch.conf and host.conf root@m3:~# cat /etc/nsswitch.conf # # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # nisplus or nis+ Use NIS+ (NIS version 3) # nis or yp Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # [NOTFOUND=return] Stop searching if not found so far # # passwd: files nis # shadow: files nis # group: files nis passwd: compat group: compat hosts: files dns networks: files services: files protocols: files rpc: files ethers: files netmasks: files netgroup: files bootparams: files automount: files aliases: files root@m3:~# cat /etc/host.conf order hosts, bind multi on I am getting crazy about this prob...maybe just reinstall it once...?! :confused: |
try this
in /etc/hosts put 127.0.0.1 localhost.localdomain localhost the resolver should be looking at /etc/hosts by the looks of it. |
well, I tried some different settings in /etc/hosts.
# For loopbacking. 127.0.0.1 localhost.localdomain localhost # End of hosts. or # For loopbacking. 127.0.0.1 localhost.localdomain localhost m3 # End of hosts. when I ping m3, it gives me root@m3:~# ping m3 PING localhost.localdomain (127.0.0.1) 56(84) bytes of data. ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted --- localhost.localdomain ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1017ms same with localhost.localdomain and only localhost... |
iptables
my solution
iptables -t nat -F iptables -t nat -X iptables -t nat -P POSTROUTING ACCEPT and everything was perfect.... :) i would have saved much time if i also printed the output of iptables -t nat -L -v instead of only iptables -L -v well, for next time.. anyway...thx for taking time ! |
All times are GMT -5. The time now is 05:49 AM. |