[Techtalk] Linux Server Setup

Mohammad Shakir shakirz1 at hotmail.com
Mon Dec 30 06:13:36 EST 2002


Dear Friends,

I have pentium 4 pc with this hardware configuration, Intel D815 GLLY 
montherboard, 1.7GHZ Intel Processor, 512 MB Ram, US Robotacs External 
Modem, 40GB Segate Hard Drive.

Actually I want to run c cable network with 15 users, and I am facing 
problem in Linux configuration. When I run my Red Had Linux 7.3 server 
without DCHP, DNS, Iptables, Squid services, it is running well, but when I 
configure that services, my server goes too slow, I do not know which 
service is creatin problem for my server.

For all experts of Linux, I am sending herewith my DHCP, DNS, Iptables, 
Host, Resolve configuration files for review.

I hope I will get a solution from you experts.

Thanks



Iptables Script
---------------
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables --flush
/sbin/iptables --table nat --flush
/sbin/iptables --delete-chain
/sbin/iptables --table nat --delete-chain

/sbin/iptables -A INPUT -s 192.168.0.12 -j DROP
/sbin/iptables -t nat -A PREROUTING -s 192.168.0.12 -j DROP

/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT 
--to-port 3128
/sbin/iptables --table nat --append POSTROUTING -s 192.168.0.1/24 
--out-interface ppp0 -j MASQUERADE
/sbin/iptables --append FORWARD --in-interface eth0 -j ACCEPT


/etc/dhcpd.conf file
----------------
### Managed by Linuxconf, you may edit by hand.
### Comments may not be fully preserved by linuxconf.

server-identifier 192.168.0.1;
default-lease-time 12000;
max-lease-time 12000;
option cookie-servers	192.168.0.1;
option domain-name      "mynet.net";
option domain-name-servers	192.168.0.1;
option host-name	"proxy";
option log-servers	192.168.0.1;
option netbios-name-servers	192.168.0.1;
option netbios-node-type	0x8;
option routers	192.168.0.1;
option subnet-mask	255.255.255.0;
subnet 192.168.0.0 netmask 255.255.255.0{
	range dynamic-bootp 192.168.0.2 192.168.0.254;
	default-lease-time 12000;
	max-lease-time 12000;
	option cookie-servers		192.168.0.1;
        option domain-name              "mynet.net";
	option domain-name-servers		192.168.0.1;
	option host-name		"proxy";
	option log-servers		192.168.0.1;
	option netbios-name-servers		192.168.0.1;
	option netbios-node-type		0x8;
	option routers		192.168.0.1;
	option subnet-mask		255.255.255.0;
}

/etc/named.conf file
----------------------------
// generated by named-bootconf.pl

options {
	directory "/var/named";
};

//
// a caching only nameserver config
//
zone "." IN {
	type hint;
	file "named.ca";
};

zone "localhost" IN {
	type master;
	file "localhost.zone";
	allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
	type master;
	file "named.local";
	allow-update { none; };
};

zone "mynet.net" IN {
	type master;
	file "named.hosts";
	allow-update { none; };
};

zone "0.168.192.in-addr.arpa" IN {
	type master;
	file "named.hosts.rev";
	allow-update { none; };
};

/var/named/named.hosts file
----------------------------
@               IN SOA  proxy.mynet.net. root.mynet.net. (
					1997022700	; serial
					28800		; refresh
					14400		; retry
					3600000		; expiry
					86400 )		; minimum
@                       IN NS           proxy.mynet.net.
localhost		IN A		127.0.0.1
proxy.mynet.net.      IN A            192.168.0.1
proxy			IN A		192.168.0.1

/var/named/named.hosts.rev file
----------------------------
@       IN      SOA     proxy.mynet.net. root.mynet.net. (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
@       IN      NS      proxy.mynet.net.
1               PTR     proxy.mynet.net.



_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 3 months FREE*. 
http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_stopmorespam_3mf




More information about the Techtalk mailing list