LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-19-2013, 09:22 PM   #1
Earlydayrambler
Member
 
Registered: Dec 2011
Posts: 39

Rep: Reputation: Disabled
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

Last edited by Earlydayrambler; 01-19-2013 at 09:51 PM.
 
Old 01-20-2013, 02:07 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
Kind regards,

Eric
 
Old 01-20-2013, 07:38 PM   #3
Earlydayrambler
Member
 
Registered: Dec 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Yes, Apache is running, and I can access the portal locally, but not from another PC on the same network.
 
Old 01-21-2013, 02:01 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 01-21-2013, 07:21 PM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
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)?
 
Old 01-21-2013, 10:53 PM   #6
Earlydayrambler
Member
 
Registered: Dec 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
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.

Last edited by Earlydayrambler; 01-22-2013 at 01:55 AM.
 
Old 01-22-2013, 06:54 AM   #7
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Is that output from the host or from the guest? And what about iptables?
 
Old 01-22-2013, 08:37 PM   #8
Earlydayrambler
Member
 
Registered: Dec 2011
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Is that output from the host or from the guest? And what about iptables?
From the guest, yes.

Quote:
Well, you have nat? The host box is running linux, right? Can you show us the output of this?
Yes, I have nat but not using it, I'm now bridged.

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.

Last edited by Earlydayrambler; 01-22-2013 at 08:42 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
start stop portal 1 and portal 2 dnaqvi Programming 6 11-30-2010 12:15 PM
Portal Linux_BSD_Unix General 1 09-24-2006 11:55 PM
how to create a portal? tsitras Debian 1 08-05-2004 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration