-   Linux - Networking (
-   -   single IP multiple services (

mchitrakar 06-01-2004 07:53 AM

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: (not real IP for example purpose only)
I need "", "" and "". 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.

ppuru 06-01-2004 08:17 AM

Please read the wonderful set of documentation on iptables on the Security forum OR

read the doc on and the sample firewall scripts that will guide you towards your goal.

mchitrakar 06-02-2004 05:53 AM

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 "". This router is also conencetd to DMZ LAN with ip "" When remote request is "". Router routers traffci to "" on which is connected WWW server. When remote request is "", traffic is routed to "". and son on. When request is for others, traffic is routed to proxy server on
This is what i wanted.
Nothing to do with security as you have mentioned.
Does anyone has any idea how to acjhieve this goal.

maxut 06-02-2004 07:38 AM

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 and generate one for your system.

mchitrakar 06-02-2004 08:58 PM

can we bundle multiple IPS
thanks ..i will look into it.. i was looking for an easy solution.. is my new Curiosity

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

All times are GMT -5. The time now is 01:19 PM.