LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   single IP multiple services (https://www.linuxquestions.org/questions/linux-networking-3/single-ip-multiple-services-188381/)

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: 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.

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 www.netfilter.org 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 "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.

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 www.iptables-script.dk 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..
anyway...here 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.