Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I've been *bind'ed* out ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wrt54g
n00b
n00b


Joined: 08 Jun 2007
Posts: 7

PostPosted: Tue Nov 27, 2007 3:49 am    Post subject: I've been *bind'ed* out ... Reply with quote

I'm in trouble ...
I have 10 mashines in LAN and i need to run LAMP on every each of them and that's not a problem...
I was wondering how to do it on just ONE *public* ip... i've just runned out of ideas...

The thing is that
domain.com points to lan ip 10.0.0.1
domain2.com -> 10.0.0.2
domain3.com -> 10.0.0.3
etc..
and two domains have subdomains ex
domain5.com -> 10.0.0.10
something.domain.com -> 10.0.0.11

my question is simple - can it be done on just one public ip?
How to do it? I found on web via google lots of stuff and tips-how-to's about bind and find it out working very well but only for one server and one domain...

:oops: Help guys i'm out of strenght on this
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23066

PostPosted: Tue Nov 27, 2007 4:22 am    Post subject: Reply with quote

What are you doing that you can sustain so many domains, but cannot get a few more IP addresses?

You can make this work if you have an HTTP reverse proxy on the gateway system that examines incoming requests and dispatches them accordingly or if you are willing to have most of the domains served off non-standard ports.
Back to top
View user's profile Send private message
wrt54g
n00b
n00b


Joined: 08 Jun 2007
Posts: 7

PostPosted: Tue Nov 27, 2007 4:34 am    Post subject: Reply with quote

Thanks for quick reply.
Unfortunaty i cannot point more ip's to that segment don't ask why... :lol:
What software should i run on the gateway box if you're advice should be used?

I don't mention services running on some "strange" port ranges until http://domain.com/ stays that way...

How does big server provideres do those things with few domains on one ip pointing to multiple mashines ...
Back to top
View user's profile Send private message
wrt54g
n00b
n00b


Joined: 08 Jun 2007
Posts: 7

PostPosted: Tue Nov 27, 2007 4:42 am    Post subject: Reply with quote

Any one is familiar with sqiud??
How would it go on that?
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Tue Nov 27, 2007 5:18 am    Post subject: Reply with quote

you did already read e.g. http://www.midgard-project.org/documentation/setting-up-squid-reverse-proxy/?
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
wrt54g
n00b
n00b


Joined: 08 Jun 2007
Posts: 7

PostPosted: Tue Nov 27, 2007 5:35 am    Post subject: Reply with quote

Well i've read it and i have even more questions
Thought it has nice and clean "tunneling" mode
Quote:
http_port "public-ip-address":80
httpd_accel_host "127.0.0.1"
httpd_accel_port 80
httpd_accel_uses_host_header on

acl valid_dst dstdomain .example.com
http_access allow valid_dst (Just before deny all!)


it has a flaw i think ... what about subdomains - all of them will have to be manually added to /etc/squid/squid.conf and the beauty of having multiply subdomains on each server suddenly vanishes
or am i just thinking backwards ... i didn't sleep all night be cause of that ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum