LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-01-2004, 06:53 AM   #1
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93
Blog Entries: 1

Rep: Reputation: 15
single IP multiple services


Can I buy only one IP from my ISP and use it for multiple services like hosting my WWW server, Mail server and MIS server (each on different computers ) and provide internet facility to my internal LAN via a proxy server. What do I need to do?

[
Making my case clear, an example-->
I bought IP say: 20.20.20.1 (not real IP for example purpose only)
I need "www.abc.edu", "mail.abc.edu" and "mis.abc.edu". Also need to give internet service to main LAN via a proxy server.
In this situateion, what I need to do to achieve my goals.

]

Please do help me.
 
Old 06-01-2004, 07:17 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
Please read the wonderful set of documentation on iptables on the Security forum OR

read the doc on www.netfilter.org and the sample firewall scripts that will guide you towards your goal.
 
Old 06-02-2004, 04:53 AM   #3
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93
Blog Entries: 1

Original Poster
Rep: Reputation: 15
more to do with name resolution than security

PPURU, Thank you for the reply, but i feel my question had little to do with security (though security is important).

my main interest is to use single ip and divide it based upon service.Let me make myself VERY CLEAR.
My need is:
I have router wan address "20.20.20.20". This router is also conencetd to DMZ LAN with ip "192.168.1.0" When remote request is "www.abc.edu". Router routers traffci to "192.168.1.2" on which is connected WWW server. When remote request is "mis.abc.edu", traffic is routed to "192.168.1.1". and son on. When request is for others, traffic is routed to proxy server on 192.168.1.4.
This is what i wanted.
Nothing to do with security as you have mentioned.
Does anyone has any idea how to acjhieve this goal.
 
Old 06-02-2004, 06:38 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
PPURU is right.
iptables is used for security, NAT, port forward, and etc.
u need iptables command to forward specific ports (www smtp pop3 etc..).
if u just want script visit www.iptables-script.dk and generate one for your system.
 
Old 06-02-2004, 07:58 PM   #5
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93
Blog Entries: 1

Original Poster
Rep: Reputation: 15
can we bundle multiple IPS

thanks ..i will look into it.. i was looking for an easy solution..
anyway...here is my new Curiosity

I was wondering how multiple Ips can be bundled together
in a single WAN link from ISP.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How To Merge multiple files into a single PDF ? kkempter Linux - Software 1 10-28-2005 01:02 PM
Getting multiple consoles on single login Mork Linux - General 7 06-02-2004 02:21 AM
Single IP Multiple Domain H.K.Shahid Linux - Networking 1 09-06-2003 02:08 PM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 02:24 AM
multiple OS on single HDD darkangel Linux - General 7 08-31-2002 01:35 PM


All times are GMT -5. The time now is 07:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration