* [LARTC] Connecting Two Network
@ 2003-04-22 12:38 Mohammad Shakir
2003-04-22 13:46 ` Martin A. Brown
0 siblings, 1 reply; 2+ messages in thread
From: Mohammad Shakir @ 2003-04-22 12:38 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
Dear Experts,
I have two networks running Red Hat Linux 7.3 on both
sites server, now I want to connect each other.
When I send any request from pc-2 to Server2 on port
2000 like this http://202.192.182.2:2000 then server2
forward this request to its internal network pc-3
which is running windows2000 with IIS.
and same on other hand, when pc4 send any request to
Server1 on port 2000 like this
http://202.192.182.1:2000 then server1 forward this
request to its internal network pc-1 which is running
windows2000 with IIS.
the purpose of this task is, to access internal
website which is running on win2k server from
internet.
Is it possible or not ? if not then any other
suggestion.
I am sending herewith my network Image also.
On both linux server I am running this iptables script
to access internet.
iptables --table nat --append POSTROUTING
--out-interface ppp0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j
ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
please guide me if it is possible then what should I
change in my script.
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
[-- Attachment #2: mynetwork.GIF --]
[-- Type: image/gif, Size: 2750 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Connecting Two Network
2003-04-22 12:38 [LARTC] Connecting Two Network Mohammad Shakir
@ 2003-04-22 13:46 ` Martin A. Brown
0 siblings, 0 replies; 2+ messages in thread
From: Martin A. Brown @ 2003-04-22 13:46 UTC (permalink / raw)
To: lartc
Sadly, for you, Mohammed,
This is not a LARTC question. I would recommend the netfilter list, to
which you have cross posted.
: I have two networks running Red Hat Linux 7.3 on both sites server, now
: I want to connect each other.
If you want to connect the two networks, you can connect them with a VPN
(CIPE, vtun, IPSec).
: When I send any request from pc-2 to Server2 on port 2000 like this
: http://202.192.182.2:2000 then server2 forward this request to its
: internal network pc-3 which is running windows2000 with IIS.
:
: and same on other hand, when pc4 send any request to Server1 on port
: 2000 like this http://202.192.182.1:2000 then server1 forward this
: request to its internal network pc-1 which is running windows2000 with
: IIS.
If you really wish to publish these services publicly, you'll want to use
DNAT:
http://iptables-tutorial.frozentux.net/iptables-tutorial.html#DNATTARGET
http://linux-ip.net/html/nat-dnat.html
<snip>
Good luck,
-Martin
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-22 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-22 12:38 [LARTC] Connecting Two Network Mohammad Shakir
2003-04-22 13:46 ` Martin A. Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.