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 06-14-2011, 02:13 PM   #1
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
iptables to forward VNC connection to Windows desktop via WAN port


I would like to open my Fedora server to connect to Windows box. My Fedora box included 3 NICs WAN(10.22.2.8), LAN1(10.28.2.100), LAN2(10.30.1.1). I would like to VNC on my windows box(10.22.2.*) to Windows(10.28.2.*) and to windows(10.30.1.*).

I am able to ping 10.22.*.* and 10.30.*.* network on my server and I am able to VNC to the server(10.22.2.8).

John
 
Old 06-15-2011, 05:24 AM   #2
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by cojo View Post
I would like to open my Fedora server to connect to Windows box. My Fedora box included 3 NICs WAN(10.22.2.8), LAN1(10.28.2.100), LAN2(10.30.1.1). I would like to VNC on my windows box(10.22.2.*) to Windows(10.28.2.*) and to windows(10.30.1.*).

I am able to ping 10.22.*.* and 10.30.*.* network on my server and I am able to VNC to the server(10.22.2.8).

John
I'm not sure I understand what the problem is. I'm not even sure what you are trying to do.

Are you trying to VNC from you Fedora server to a windows box or are you trying to VNC from a windows box to another windows box?
 
Old 06-15-2011, 02:51 PM   #3
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
The Fedora have 3 NICS with connect to 10.22.*.*, 10.28.*.*, and 10.30.*.* network and it a firewall between these network. I would like to VNC from a Windows box on 10.22.2.* to another Windows box on 10.28.*.* and Windows box on 10.30.*.*.
 
Old 06-15-2011, 04:18 PM   #4
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
I think my problem is more related to routing issue between 3 networks.
 
Old 06-16-2011, 01:57 AM   #5
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by cojo View Post
I think my problem is more related to routing issue between 3 networks.
If you can ping them, then routing is in place, however, this might be limited to icmp requests, which would explain your problems

Can you post your iptables configuration please (both filter and nat tables)?
 
Old 01-27-2012, 01:48 AM   #6
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Quote:
Can you post your iptables configuration please (both filter and nat tables)?
I using Fedora, in /etc/sysconfig/iptables
Code:
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
What I want is connect Windows boxes behind iptables Linux box.
 
Old 01-28-2012, 08:29 AM   #7
catworld
Member
 
Registered: Nov 2004
Location: Horseheads, New York
Distribution: Mandriva 2010.1 / KDE 4.5.2, Slax, Knoppix, Backtrack & etc...
Posts: 198

Rep: Reputation: 36
Just to clarify the problem, you have 3 networks connected through a fedora server, and you want to be able to VNC from any of the networks to any of the others, correct?

Do you have any interconnectivity between the networks now? Can you ping hosts from one net to another? Access file shares? If not, the problem is the routing, fix that and VNC won't be a problem.

Post the routing tables for the three ifaces.
 
  


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
Iptables can't port forward (PAT Port address translation) sfrederiksen Linux - Networking 7 12-20-2011 10:47 AM
If I forward a port in iptables, does the port have to be open on the firewall? qwertyjjj Linux - Server 4 08-06-2009 09:22 AM
IPTABLES port Forward abhijeetudas Linux - Networking 1 12-02-2005 04:00 AM
How to port forward with IPTABLES... Scrag Linux - Security 6 12-13-2004 04:57 AM
Port Forward with iptables nymig94 Linux - Networking 5 12-02-2001 09:22 PM

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

All times are GMT -5. The time now is 08:20 PM.

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