netstat -atn

tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:113             0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:53975           0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN    
tcp        0   1390 10.1.1.4:10000          10.1.1.5:4812           ESTABLISHED
tcp 
      0      0 10.1.1.4:10000          10.1.1.5:4811         
ESTABLISHEDThe above result is gathered when I connected via eth1
But, still not make any sense, why I cant connect to https://10.1.1.1:10000 or 
https://10.1.1.4:10000 if I am using connection on eth0 only?

"
Of course it is possible to have IPs from the same subnet on different
interfaces, but then you have to set the netmask correct and not set to
255.0.0.0.
"

Whats wrong with /8? Do I really making mistake by not subnetting on /24 only?


Thank for the reply


----- Original Message ----
From: subscriptions <[EMAIL PROTECTED]>
To: Phillipus Gunawan <[EMAIL PROTECTED]>
Sent: Tuesday, 25 November, 2008 6:33:22 PM
Subject: Re: Fw: Shorewall with Debian

On Tue, 2008-11-25 at 07:00 +0100, Phillipus Gunawan wrote:
> 
> Just to clear up bit mis-understanding
> I did not put same IP on eth0 and eth1, they 10.1.1.1 and 10.1.1.4
> But both did reside on the same subnet: 255.0.0.0
> With this scenario, I assume you corrected me by saying this
> configuration will confuse the Debian on will packet will go from
> which NIC, is this correct?
> 
> But then, with the same conf, why am I able to log in from 10.1.1.5 by
> using https://10.1.1.1:10000 or https://10.1.1.4:10000?
> This is what somehow confusing me

Is apache2 listening to all interfaces?

Do 'netstat -atn', so you can see what interfaces it listens to. If
there is a *:10000 , it listens to all, hence you will always connect to
it.

Of course it is possible to have IPs from the same subnet on different
interfaces, but then you have to set the netmask correct and not set to
255.0.0.0.

Best,

Rob


      Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now 
http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to