jflesher
2nd March 2009, 10:15 PM
I've just setup Fedora 10 x64 on a Supermicro 7045 with dual nic; I setup a web site and ran into a strange problem; I can't see my website from outside my LAN; checking IP on Internet it sees my IP as coming for my dynamic IP (IP of router/switch) and not my static IP.
eth0: Static IP
eth1: Dynamic IP
These are standard Intel® 82563EB Dual-Port Gigabit Ethernet Controller.
Is there a way to specify the order in which it sees the nic ports?
I'm wonder if I can mix Static and Dynamic IP's; on the outside they resolve to a static IP; the dynamic one shows up as my router/switch IP; but it allows me to access my DHCP computers; this isn't a web server; but a development machine for writing PHP apps.
ifcfg-eth0
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
DNS1=123.123.123.1
GATEWAY=123.123.123.2
HWADDR=00:30:48:7f:0a:66
IPADDR=123.123.123.3
NETMASK=255.255.255.240
ONBOOT=yes
SEARCH="mydomain.net"
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
NM_CONTROLLED=yes
PEERDNS=yes
ifcfg-eth1
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=eth1
HWADDR=00:30:48:7f:0a:67
ONBOOT=yes
SEARCH="mydomain.net"
BOOTPROTO=dhcp
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
NM_CONTROLLED=yes
PEERDNS=no
Where 123.123.123.3 is my static IP address.
I should mention that nmap -v -p 80 123.123.123.3 shows an open port on 80
My VirtualHost is setup like:
NameVirtualHost 123.123.123.3
<VirtualHost 123.123.123.3>
ServerName www.mydomain.com
ServerAlias mydomain.com *.mydomain.com
DocumentRoot /var/www/html/mydomain
ServerAdmin webmaster@mydomain.net
RewriteEngine On
RewriteOptions Inherit
ServerSignature Off
DirectoryIndex index.php index.html index.htm index.shtml
SSLEngine off
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
SSLOptions
TransferLog logs/access_log
ErrorLog logs/error_log
LogLevel error
HostNameLookups on
</VirtualHost>
<Directory "/var/www/html/mydomain">
AllowOverride all
Allow from all
</Directory>
Thanks
Jeff
eth0: Static IP
eth1: Dynamic IP
These are standard Intel® 82563EB Dual-Port Gigabit Ethernet Controller.
Is there a way to specify the order in which it sees the nic ports?
I'm wonder if I can mix Static and Dynamic IP's; on the outside they resolve to a static IP; the dynamic one shows up as my router/switch IP; but it allows me to access my DHCP computers; this isn't a web server; but a development machine for writing PHP apps.
ifcfg-eth0
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
DNS1=123.123.123.1
GATEWAY=123.123.123.2
HWADDR=00:30:48:7f:0a:66
IPADDR=123.123.123.3
NETMASK=255.255.255.240
ONBOOT=yes
SEARCH="mydomain.net"
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
NM_CONTROLLED=yes
PEERDNS=yes
ifcfg-eth1
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=eth1
HWADDR=00:30:48:7f:0a:67
ONBOOT=yes
SEARCH="mydomain.net"
BOOTPROTO=dhcp
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
NM_CONTROLLED=yes
PEERDNS=no
Where 123.123.123.3 is my static IP address.
I should mention that nmap -v -p 80 123.123.123.3 shows an open port on 80
My VirtualHost is setup like:
NameVirtualHost 123.123.123.3
<VirtualHost 123.123.123.3>
ServerName www.mydomain.com
ServerAlias mydomain.com *.mydomain.com
DocumentRoot /var/www/html/mydomain
ServerAdmin webmaster@mydomain.net
RewriteEngine On
RewriteOptions Inherit
ServerSignature Off
DirectoryIndex index.php index.html index.htm index.shtml
SSLEngine off
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
SSLOptions
TransferLog logs/access_log
ErrorLog logs/error_log
LogLevel error
HostNameLookups on
</VirtualHost>
<Directory "/var/www/html/mydomain">
AllowOverride all
Allow from all
</Directory>
Thanks
Jeff