Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th February 2007, 10:07 PM
best_112 Offline
Registered User
 
Join Date: Nov 2006
Posts: 4
port forwarding IPTABLES

I have a fedora core linux box (fc6) which acts like a DHCP server.

INTERNET ----- LINUX BOX ----- WINXP

The problem im having is forwarding a port to my winxp machine.

for this i know u have to use iptables so this is the rule i have written

iptables -I FORWARD -p tcp -d 192.168.0.101 --dport 6762 -j ACCEPT

where 192.168.0.101 is the ip address of the windows XP computer and 6762 is the port i want to forward

suggestions?
Reply With Quote
  #2  
Old 18th February 2007, 12:32 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
I would something like this.
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6762 -j DNAT --to-destination 192.168.0.101:6762

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
Reply

Tags
forwarding, iptables, port

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bug? iptables port forwarding, ipv6 happy1776 Servers & Networking 0 12th June 2008 02:54 PM
iptables, port forwarding, 2 nics savage Servers & Networking 0 7th September 2007 11:26 PM
Port forwarding (iptables?) nathanW Servers & Networking 23 6th October 2006 04:31 PM
need help on IPTables port forwarding jepongski Security and Privacy 1 12th December 2005 04:54 AM


Current GMT-time: 04:46 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat