Forum Moderators: phranque

Message Too Old, No Replies

2 external ips to same website

         

jacastronunes

8:47 am on Oct 25, 2010 (gmt 0)

10+ Year Member



Helo, i have to 2 adsl lines, so i have 2 external ips, the 82.154.249.125 and the 82.154.249.135 and i want to use then both for the same website. i already redirecticted both routers but i only can open the website from the second ip, i think i have to configure apache to accept 2 ips.

This is my site-avaliable config:

<VirtualHost 0.0.0.0:8080>
ServerAdmin webmaster@localhost

DocumentRoot "/var/www/floricolor/bulgas/client/"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/floricolor/bulgas/client">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

<Directory "/var/www/floricolor/bulgas/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>


I don't know what to do next.

Please help me.


Kind regards

phranque

10:51 am on Oct 25, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



what response do you get for a HTTP request?
have you tried a traceroute or ping of that IP address?

phranque

6:27 am on Oct 26, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



by the way, since i didn't notice before...
welcome to WebmasterWorld [webmasterworld.com], jacastronunes!

jacastronunes

8:48 am on Oct 26, 2010 (gmt 0)

10+ Year Member



i don't get any response.
I have a domain controller with ubuntu 8.04 and ebox software to control users logins and network traffic.
Could it be this computer that is messing with my second internet?

Thanks in advance

phranque

10:00 am on Oct 26, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



ping?
traceroute?
whois?

jacastronunes

11:21 am on Oct 26, 2010 (gmt 0)

10+ Year Member



I can ping the router.

traceroute:
arucard@arucard:~$ traceroute 192.168.5.252
traceroute to 192.168.5.252 (192.168.5.252), 30 hops max, 40 byte packets
1 192.168.5.252 (192.168.5.252) 8.790 ms 8.791 ms 9.772 ms

route:
arucard@arucard:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.5.208 0.0.0.0 UG 100 0 0 eth0

whois:
arucard@arucard:~$ whois 192.168.5.252
#
# Query terms are ambiguous. The query is assumed to be:
# "n 192.168.5.252"
#
# Use "?" to get help.
#

#
# The following results may also be obtained via:
# [whois.arin.net...]
#

NetRange: 192.168.0.0 - 192.168.255.255
CIDR: 192.168.0.0/16
OriginAS:
NetName: PRIVATE-ADDRESS-CBLK-RFC1918-IANA-RESERVED
NetHandle: NET-192-168-0-0-1
Parent: NET-192-0-0-0-0
NetType: IANA Special Use
NameServer: BLACKHOLE-1.IANA.ORG
NameServer: BLACKHOLE-2.IANA.ORG
Comment: This block is used as private address space.
Comment: Addresses from this block can be used by
Comment: anyone without any need to coordinate with
Comment: IANA or an Internet registry. Addresses from
Comment: this block are used in multiple, separately
Comment: operated networks.
Comment: This block was assigned by the IETF in the
Comment: Best Current Practice document, RFC 1918
Comment: which can be found at:
Comment: [rfc-editor.org...]
RegDate: 1994-03-15
Updated: 2010-03-15
Ref: [whois.arin.net...]

OrgName: Internet Assigned Numbers Authority
OrgId: IANA
Address: 4676 Admiralty Way, Suite 330
City: Marina del Rey
StateProv: CA
PostalCode: 90292-6695
Country: US
RegDate:
Updated: 2004-02-24
Ref: [whois.arin.net...]

OrgAbuseHandle: IANA-IP-ARIN
OrgAbuseName: Internet Corporation for Assigned Names and Number
OrgAbusePhone: +1-310-301-5820
OrgAbuseEmail: abuse@iana.org
OrgAbuseRef: [whois.arin.net...]

OrgTechHandle: IANA-IP-ARIN
OrgTechName: Internet Corporation for Assigned Names and Number
OrgTechPhone: +1-310-301-5820
OrgTechEmail: abuse@iana.org
OrgTechRef: [whois.arin.net...]

#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: [arin.net...]
#

the 192.168.5.208 is my domain controller;
the 192.168.5.203 is the website server;
the 192.168.5.252 is the second adsl router.

phranque

12:01 pm on Oct 26, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i thought your problem was reaching 82.154.249.125, not the internal IP address.

and forget about the whois - i forgot we were discussing an IP address when i wrote that.

jacastronunes

7:44 am on Oct 28, 2010 (gmt 0)

10+ Year Member



So can anyone help me? i have tried to plug the 2 adsl routers directly to the machine.

This is my route output:

[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.5.208 0.0.0.0 UG 0 0 0 eth1


This is my main table:
[root@localhost ~]# ip route show table main
192.168.5.0/24 dev eth1 proto kernel scope link src 192.168.5.84
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.203
169.254.0.0/16 dev eth1 scope link
default via 192.168.5.208 dev eth1



Its strang that i only have one default gateway, i should have i gateway for each nic :S.


Please help me,


Thanks in advance

phranque

10:21 am on Oct 28, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



what happens when you do "traceroute 82.154.249.125"?