View Single Post
  #7  
Old 20th July 2009, 16:22
khan khan is offline
Junior Member
 
Join Date: Jul 2009
Location: Chicago
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

>>># ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0e:0c:6a:a7:b6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16

eth1 Link encap:Ethernet HWaddr 00:0e:0c:6a:a7:b7
inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:cff:fe6a:a7b7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18261 errors:0 dropped:0 overruns:0 frame:0
TX packets:10168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:21938200 (21.9 MB) TX bytes:7228576 (7.2 MB)

eth0:avahi Link encap:Ethernet HWaddr 00:0e:0c:6a:a7:b6
inet addr:169.999.999.999 Bcast:169.999.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:244 errors:0 dropped:0 overruns:0 frame:0
TX packets:244 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23697 (23.6 KB) TX bytes:23697 (23.6 KB)

pan0 Link encap:Ethernet HWaddr 2e:83:80:9c:f1:3d
inet6 addr: fe80::2c83:80ff:fe9c:f13d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:6341 (6.3 KB)

pan0:avahi Link encap:Ethernet HWaddr 2e:83:80:9c:f1:3d
inet addr:169.999.999.999 Bcast:169.999.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

virbr0 Link encap:Ethernet HWaddr 7a:2d:7a:0f:c7:09
inet6 addr: fe80::782d:7aff:fe0f:c709/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:10013 (10.0 KB)

virbr0:avahi Link encap:Ethernet HWaddr 7a:2d:7a:0f:c7:09
inet addr:169.999.9.999 Bcast:169.999.999.999 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1



>>># dhclient
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/pan0/2e:83:80:9c:f1:3d
Sending on LPF/pan0/2e:83:80:9c:f1:3d
Listening on LPF/eth0/00:0e:0c:6a:a7:b6
Sending on LPF/eth0/00:0e:0c:6a:a7:b6
Listening on LPF/virbr0/7a:2d:7a:0f:c7:09
Sending on LPF/virbr0/7a:2d:7a:0f:c7:09
Listening on LPF/eth1/00:0e:0c:6a:a7:b7
Sending on LPF/eth1/00:0e:0c:6a:a7:b7
Sending on Socket/fallback
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on pan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.1.105 from 192.168.1.1
DHCPREQUEST of 192.168.1.105 on eth1 to 255.255.255.255 port 67
DHCPACK of 192.168.1.105 from 192.168.1.1
bound to 192.168.1.105 -- renewal in 286868 seconds.


>>># cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth1
###iface eth1 inet dhcp
iface eth1 inet static
address 192.168.1.105
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.0.255
gateway 192.168.1.1


>>> # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.999.0.0 0.0.0.0 255.255.0.0 U 0 0 0 virbr0
169.999.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
169.999.0.0 0.0.0.0 255.255.0.0 U 0 0 0 pan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 0.0.0.0 0.0.0.0 U 1000 0 0 virbr0


>>># cat /etc/resolv.conf
nameserver 192.168.1.1


www.server1.com configuration is as follows:

[global]
webserver=apache
mailserver=postfix
dnsserver=mydns

[server]
auto_network_configuration=
ip_address=127.0.0.1
netmask=255.255.255.0
gateway=192.168.0.1
hostname=server1.com
nameservers=192.168.0.1,192.168.0.2

[mail]
module=postfix_mysql
maildir_path=/var/vmail/[domain]/[localpart]
homedir_path=/var/vmail
mailuser_uid=5000
mailuser_gid=5000
mailuser_name=vmail
mailuser_group=vmail
relayhost=
relayhost_user=
relayhost_password=
mailbox_size_limit=0
message_size_limit=0

[getmail]
getmail_config_dir=/etc/getmail

[web]
website_basedir=/var/www
website_path=/var/www/clients/client[client_id]/web[website_id]
website_symlinks=/var/www/[website_domain]/:/var/www/clients/client[client_id]/[website_domain]/
vhost_conf_dir=/etc/apache2/sites-available
vhost_conf_enabled_dir=/etc/apache2/sites-enabled

[fastcgi]
fastcgi_starter_path=/var/www/php-fcgi-scripts/[system_user]/
fastcgi_starter_script=.php-fcgi-starter
fastcgi_alias=/php/
fastcgi_phpini_path=/etc/php5/cgi/
fastcgi_children=8
fastcgi_max_requests=5000
fastcgi_bin=/usr/bin/php-cgi

[jailkit]
jailkit_chroot_home=/home/[username]
jailkit_chroot_app_sections=basicshell editors extendedshell netutils ssh sftp scp groups jk_lsh
jailkit_chroot_app_programs=/usr/bin/groups /usr/bin/id /usr/bin/dircolors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico


Thanks for your prompt response Falko...

Note: When i try to access www.website1.com from outside network it gives me "connection time out" error...

Last edited by khan; 20th July 2009 at 16:39.
Reply With Quote