сейчас поставил просто апач с свн модулями и без, результат тот же, с 192.168.0.1 и 127.0.0.1 нормально, с остальных - не коннектится
похоже это со всеми демонами так, может в iptables дело? (поставлен NAT на 2й комп через rc.firewall)
Код:
[root@myhost ~]# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- 192.168.0.0/24 anywhere
drop-and-log-it all -- 192.168.0.0/24 anywhere
ACCEPT icmp -- anywhere *myhost*
ACCEPT all -- anywhere *myhost* state RELATED,ESTABLISHED
drop-and-log-it all -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
drop-and-log-it all -- anywhere anywhere
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- *myhost* 192.168.0.0/24
ACCEPT all -- 192.168.0.0/24 192.168.0.0/24
drop-and-log-it all -- anywhere 192.168.0.0/24
ACCEPT all -- *myhost* anywhere
drop-and-log-it all -- anywhere anywhere
Chain drop-and-log-it (5 references)
target prot opt source destination
LOG all -- anywhere anywhere LOG level info
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
iptables-save
Код:
[root@myhost ~]# iptables-save
# Generated by iptables-save v1.4.2 on Sun Dec 21 16:57:53 2008
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:drop-and-log-it - [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -s 192.168.0.0/24 -i eth1 -j ACCEPT
-A INPUT -s 192.168.0.0/24 -i ppp0 -j drop-and-log-it
-A INPUT -d *myip*/32 -i ppp0 -p icmp -j ACCEPT
-A INPUT -d *myip*/32 -i ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -j drop-and-log-it
-A FORWARD -i ppp0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth1 -o ppp0 -j ACCEPT
-A FORWARD -j drop-and-log-it
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -s *myip*/32 -d 192.168.0.0/24 -o eth1 -j ACCEPT
-A OUTPUT -s 192.168.0.0/24 -d 192.168.0.0/24 -o eth1 -j ACCEPT
-A OUTPUT -d 192.168.0.0/24 -o ppp0 -j drop-and-log-it
-A OUTPUT -s *myip*/32 -o ppp0 -j ACCEPT
-A OUTPUT -j drop-and-log-it
-A drop-and-log-it -j LOG --log-level 6
-A drop-and-log-it -j REJECT --reject-with icmp-port-unreachable
COMMIT
# Completed on Sun Dec 21 16:57:53 2008
# Generated by iptables-save v1.4.2 on Sun Dec 21 16:57:53 2008
*nat
:PREROUTING ACCEPT [5007:267982]
:POSTROUTING ACCEPT [1765:105900]
:OUTPUT ACCEPT [2891:173821]
-A POSTROUTING -o ppp0 -j MASQUERADE
COMMIT
# Completed on Sun Dec 21 16:57:53 2008
решил проблему радикально
iptables -F
iptables -X
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE