Fedora Linux Support Community & Resources Center
  #1  
Old 22nd July 2007, 02:36 PM
TheN00BeXpert's Avatar
TheN00BeXpert Offline
Registered User
 
Join Date: Jul 2007
Posts: 21
MASQUERADE just ONE port: 80

Hello,

I am currently MASQUERADING with this command:

HTML Code:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
How can I change this command that that PC who is MASQUERADED to be able to use ONLY HTTP protocol? I would like to deny Yahoo Messenger, DC++ and other applications.

Thank you in advance for your time.
Reply With Quote
  #2  
Old 22nd July 2007, 06:18 PM
marcelkraan's Avatar
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3389 -j DNAT --to-dest 192.168.0.104

i did that with windows remote desktop reroute the 3389 port

but it's not exactly what you want

Last edited by marcelkraan; 22nd July 2007 at 06:25 PM.
Reply With Quote
  #3  
Old 22nd July 2007, 07:48 PM
TheN00BeXpert's Avatar
TheN00BeXpert Offline
Registered User
 
Join Date: Jul 2007
Posts: 21
192.168.0.104 beeing the PC who recives internet with DNAT?
Reply With Quote
  #4  
Old 24th July 2007, 04:00 PM
marcelkraan's Avatar
marcelkraan Offline
Registered User
 
Join Date: Jul 2006
Location: Netherlands/Velsen (5km from amsterdam)
Posts: 230
Yes that is correct..

works only from the outside
you can't test it inside


Quote:
Originally Posted by TheN00BeXpert
192.168.0.104 beeing the PC who recives internet with DNAT?
Reply With Quote
  #5  
Old 24th July 2007, 07:30 PM
TheN00BeXpert's Avatar
TheN00BeXpert Offline
Registered User
 
Join Date: Jul 2007
Posts: 21
Yea, that's the definition of the DESTINATION NAT.

So, any ideas for my problem?
Reply With Quote
Reply

Tags
masquerade, 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
IP Masquerade in FC3 gyunee Servers & Networking 2 19th January 2005 05:24 PM


Current GMT-time: 07:48 (Thursday, 20-06-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