LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-15-2006, 09:39 PM   #1
czarjohnph
LQ Newbie
 
Registered: Oct 2005
Location: Philippines
Distribution: redhat7.3 and ubuntu
Posts: 2

Rep: Reputation: 0
how to configure CentOS as internet server?


can anyone provide me a step by step configuration or settings of how to configure my CentOS as an internet server? i am using dsl connection with static IP and 100 workstations that will connect to the internet through the server.
 
Old 01-15-2006, 10:44 PM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
although i'm not really sure what you mean by an internet server, i'm guessing you mean gateway, well my suggestion would be use squid if you running a network.

squid is a proxy server that will cache files accessed via the internet so when someone on your network accesses the same page twice, rather than go to the internet again and use your bandwidth it just gets the page from squid.

now as for a step by step guide, you don't need one, it's really easy!

just edit the /etc/squid/squid.conf file to remove the http_access rules

# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

# Only allow cachemgr access from localhost
# http_access allow manager localhost
# http_access deny manager
# Deny requests to unknown ports
# http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
# http_access deny CONNECT !SSL_ports

and so on and so on. then add the following

http_access allow all

once that is done, start the squid service

'/etc/init.d/squid start'

make sure it starts every time you turn on the machie

chkconfig squid on

and then get your client to connect via squid

go into your web browsers and set the proxy settings to

ip-address-of-your-squid-server with port 3128 (is normally the defaul)

i have plently more information about squid doing lots of other things with squid on my website have a look if your interested

http://www.yourhowto.org/

also i'd suggest you download webmin http://www.webmin.com

and have a look at the squid module, look at the ACL's and http_access rules

the way i've told you to set this up will get you going, but thats not the best way of getting it to run.
 
Old 01-16-2006, 12:29 AM   #3
czarjohnph
LQ Newbie
 
Registered: Oct 2005
Location: Philippines
Distribution: redhat7.3 and ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
thank u sir. i'll try that.
 
  


Reply



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
CentOS Opening port for FTP Server Thin Linux - Distributions 3 11-16-2005 11:38 AM
problem with install on centos server elrehab Linux - Software 1 10-05-2005 05:18 PM
Dedicated Server with CentOS 4.x and DNS Xoleum Linux - Newbie 3 09-10-2005 02:48 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:49 AM.

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