Can't connect to portal.
Hi,
I'm using CentOS 6.3 Apache Web Server I can't connect to a ticket system portal from another computer outside the network. The ticket system is running on a virtual machine with NAT. Any more info I should provide? Or any step should I take? EDIT: I changed to Bridged and still can't. EDIT: I can not access the portal on the same network from another virtual machine on the same network 192.168.1 |
Hi,
Did you verify that Apache is running? Can you run the following command on the box with Apache installed and post the output: Code:
netstat -tnlp Eric |
Yes, Apache is running, and I can access the portal locally, but not from another PC on the same network.
|
Hi,
How about posting the output of the command, run on the Apache server, I posted? That will show us on what IP Apache is listening and might be a first indication. Kind regards, Eric |
Well, you have nat? The host box is running linux, right? Can you show us the output of this?
iptables -t nat -L -nv iptables -L -nv ip addr show ip route show Have you tried using a sniffer on both network interfaces (interface to network where traffic from box is coming, interface to VM)? |
Okay, the output of netstat -tnlp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:36100 0.0.0.0:* LISTEN 1527/rpc.statd tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2886/mysqld tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1435/rpcbind tcp 0 0 192.168.2.164:80 0.0.0.0:* LISTEN 3287/httpd tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 2924/X tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1665/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1576/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3458/master tcp 0 0 :::38380 :::* LISTEN 1527/rpc.statd tcp 0 0 :::111 :::* LISTEN 1435/rpcbind tcp 0 0 :::6000 :::* LISTEN 2924/X tcp 0 0 :::22 :::* LISTEN 1665/sshd tcp 0 0 ::1:631 :::* LISTEN 1576/cupsd tcp 0 0 ::1:25 :::* LISTEN 3458/master I tried lining up the output, but would not. I hope this helps. EDIT: I can ping the server with the ticket system portal with all clients, and the server can ping all clients. |
Is that output from the host or from the guest? And what about iptables?
|
Quote:
Quote:
The host box is running linux. The guest box is running linux. #iptables -t nat -L -nv OUTPUT: hain PREROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination #iptables -L -nv OUTPUT: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 13120 15M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 134 7886 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22 76 15134 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT 9169 packets, 1172K bytes) pkts bytes target prot opt in out source destination #ip addr show OUTPUT: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:0c:29:ac:5e:18 brd ff:ff:ff:ff:ff:ff inet 192.168.2.164/24 brd 192.168.2.255 scope global eth0 inet6 fe80::20c:29ff:feac:5e18/64 scope link valid_lft forever preferred_lft forever #ip route show OUTPUT: 192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.164 default via 192.168.2.1 dev eth0 What option do you want me to use with iptables? That is all the output from the guest(VM) Thanks a lot eantoranz. |
All times are GMT -5. The time now is 11:40 PM. |