LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-03-2005, 06:44 PM   #1
NeoTech
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian - 2.4.28Kernel
Posts: 4

Rep: Reputation: 0
Problem accessing internela domains..


I have a couple of domains on vhosts..

and of course i cant surf them.. i can surf the ip number of the server, but then i cant access the vhosts.. any good solution to this problem?
ex. i can access 192.168.1.30
but not neotech.ath.cx

i Use iptables for snat and port handling...

Regards // Andreas
 
Old 01-03-2005, 11:29 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
don't u need to configure DNS for that??
or can it be done through SNAT also??
 
Old 01-04-2005, 02:18 AM   #3
NeoTech
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian - 2.4.28Kernel
Posts: 4

Original Poster
Rep: Reputation: 0
I've solved with a SNAT line...
 
Old 01-04-2005, 08:57 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by NeoTech
I've solved with a SNAT line...
how did u do that
could u please explian??

regards
 
Old 01-04-2005, 09:05 AM   #5
NeoTech
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian - 2.4.28Kernel
Posts: 4

Original Poster
Rep: Reputation: 0
iptables -t nat -A POSTROUTING -d <webserver_ip> -s 192.168.1.0/24 -p tcp --dport <webserver_port> -j SNAT --to <router_ip>
 
Old 01-04-2005, 09:09 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
thanx for the info!!

regards
 
  


Reply



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
Postfix + mysql + courier-imap + virual domains problem. jml75 Debian 2 08-12-2005 04:52 PM
Accessing second drive problem diana_chen23 Linux - Hardware 5 07-06-2005 11:01 AM
ACcessing problem hk_michael Linux - Networking 1 03-30-2005 11:52 PM
Problem accessing libraries DDD26 Linux - Newbie 4 12-16-2004 04:38 PM
wget problem - spaning domains MarlaSinger Linux - Software 1 03-05-2004 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration