Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Accessing a windows based web-server with private IP address through a Linux-based Name Server

Hi,
I am not sure if this posting should bein the Linux or WIndows Networking Forums. But I guess somebody would point me in the right direction, if I am wrong. That said, here goes.
I purchased a domain a few days back, who allows me name server as well as DNS management. I have pointed the Name server to a machine in my department, which has a public IP address. The problem is I want to run my webserver on a Wondows XP based machine with a private Ip address of 10.x.x.x. The Name Server as well as the DNS server of my department runs on Linux. Is there any way in which I can do this, short of running Samba on the Linux machine or changing the OS of my web server to Linux ?
0
nmadhumohan
Asked:
nmadhumohan
1 Solution
 
nociSoftware EngineerCommented:
Please look into iptables , and nat .
other items that are of interrest: FORWARD rules, ip_forward setting for ipv4.

Samba has nothing to do with this. You need some system with a public IP address to route it to the inside and translate some ipaddresses
on the fly.

in iptables on linux you need a PREROUTING  nat rule that will do a DNAT translation for you,
you need a forward rule to prevent too much access,
you need to enable routing & forwarding through /proc/sys/net/ipv4/ip_forward.
0
 
nmadhumohanAuthor Commented:
Thanks for the tip. I am sorry for the delay in awarding the points - i had been away on a vacation and just got back.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now