LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 02-19-2009, 11:58 AM   #1
LOH Mephisto
LQ Newbie
 
Registered: Feb 2009
Distribution: Fedora, ubuntu, centeos
Posts: 4

Rep: Reputation: 0
setting up linux servers


I'm thinking of setting up some servers, but I don't have a lot of experience with linux server. I'm thinking of using Slackware.

the servers I'm setting up are:
- DHCP/Gateway server
- Mail/Print server

The clients:
- 2 Win Xp pro pc (Wired)
- 1 Win mobile Pda (Wireless)
- 1 Win Wp pro Notebook (Wireless)

The mail are fetched from isp via pop3 and sent to isp via smtp
the mails from and to clients via imap

Can any one give me some guide lines how to set these servers up

Thanks LOH
 
Old 02-19-2009, 01:10 PM   #2
armandrix
Member
 
Registered: Nov 2005
Location: Brazil
Distribution: slackware64 -current
Posts: 46

Rep: Reputation: 18
Hi

I suggest you to think in one thing at a time.

Gateway server you'll find thru iptables, where you can write a file script and set it all up, i.e:
Quote:
# cleanning up
iptables -F
iptables -t nat -F

# "Ping of Death"
iptables -A FORWARD -p icmp --icmp-type echo-request -m limit --limit 1/s -j ACCEPT

# "Syn-flood, DoS, etc"
iptables -A FORWARD -p tcp -m limit --limit 1/s -j ACCEPT

# (NAT,DNAT,SNAT)
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

# Performance
iptables -t mangle -A OUTPUT -o $ENT -p tcp --dport 53 -j TOS --set-tos Minimize-Delay
iptables -t mangle -A OUTPUT -o $ENT -p tcp --dport 80 -j TOS --set-tos Minimize-Delay

#internals - check it with dhcp server
iptables -A INPUT -p tcp --syn -s 192.168.0.10 -j ACCEPT
iptables -A OUTPUT -p tcp --syn -s 192.168.0.10 -j ACCEPT
iptables -A FORWARD -p tcp --syn -s 192.168.0.10 -j ACCEPT

# share internet
iptables -t nat -A POSTROUTING -s *$REDEINT -o *ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

... and so on...
There are several dhcp server you can install easily.
Print server you'll have to use samba due windows machines.
You can choose from many mail server like sendmail or postfix.

Hope it helps,

regards
 
  


Reply

Tags
slackware



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting name servers on multiple servers centosfan Linux - Server 3 01-23-2008 03:43 PM
Problems setting up DNS for internal servers aclarke Linux - Networking 2 05-29-2007 06:51 PM
Setting up DNS Servers properly? Swakoo Linux - Networking 36 02-21-2007 03:19 AM
Setting DNS servers Boudewijn Linux - Networking 1 12-25-2003 02:56 PM
good book(s) for setting up linux servers Cii Linux - Networking 2 08-16-2003 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration