LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 08-26-2004, 12:30 PM   #1
enzolabrador
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
Setting webserver


Here's the setup:

Internet
|
|223.x.x.x(eth0)
----------------------
| Firewall/Router |
----------------------
|192.168.1.1(eth1)
|
-------------------------
| switch |-----------------192.168.1.10(workstation)
-------------------------
|
|192.168.1.5
-------------------------
| web server |
-------------------------

Firewall/Router:
Installed:
Mandrake 9.1
SQUID
IPTABLES
Webserver:
Installed:
Mandrake 10.0
Apache2
dns2go client

I'm confident that i've configured everything well but my problem is that when i tried access from 192.168.1.10 to domain name that i've registered(a 30 day trial version) in dns2go.com i can't connect to it. Let say may domain name is mydomain.dns2go.com and its corresponding external ip is 223.x.x.x.In my router i have this iptables rules:
#to open port 80
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
#to port forward port 80
iptables -t nat -A PREROUTING -i eth0 -d 223.x.x.x -p tcp --dport 80 -j DNAT --to 192.168.1.5
#to redirect internal request on port 80 to port 3128(SQUID CACHE)
iptabes -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

when i try to access the webserver by using its local IP it works fine but with its domain name it doesn't work.

what must be the problem?
 
Old 08-26-2004, 03:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Moved: This thread is more suitable in Linux - Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Up Fedora WebServer aylwin_wong Linux - Networking 2 09-05-2005 03:55 AM
Setting up a small webserver, someone please help rookiepaul Linux - Newbie 4 07-05-2005 10:58 AM
setting up a webserver airmijo Linux - Newbie 6 11-15-2004 08:37 AM
Setting up a webserver fleeced Linux - General 1 09-04-2004 11:24 AM
Setting up a Webserver LinuxLala Linux - Networking 10 02-09-2004 09:44 AM


All times are GMT -5. The time now is 02:22 AM.

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