Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How do i enable FTP Gateway/Masqurading in Redhat 7.2

Posted on 2002-06-19
Medium Priority
Last Modified: 2010-03-17
How do i enable FTP Gatway/Masqurading in Redhat 7.2?  Where are the modules available?
Question by:sowdesh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 7095863
FTP is a seperate function from 'Gateway/Masquerading'.

For a gateway you need 2 or more interfaces other than lo as well as appropriate routing table entries and forwarding enabled.

For masquerading you need iptables or ipchains (I recommend iptables). You can also use these for firewalling.

By FTP I assume you want to make files accessible over a network. That requires an FTP server (wu-ftp comes with RH) and a network connection.

Can you be more explicit about what you want?
LVL 15

Expert Comment

ID: 7096602

that is a firm solution by MFCRich.

And if you are looking for proxy solution, I bet Rh7.2 does come with Squid.  Squid should be able to act as http/https proxy as well as FTP (via HTTP proxy).

If you are into more *complicated* mode, you could configure squid to allow CONNECT method, and this would enable you to use HTTP tunneling.  Most TCP service could be tunneled thru HTTPS proxy.

These are the alternate options.


Author Comment

ID: 7097881
What I require is a solution to enable the FTP Gateway.
In the previous version of RedHat I've been doing 'insmod ip_masq_ftp'.  Is the ip_masq_ftp.o module available in RedHat 7.2 or is there any other means.
Note that I've got little knowledge of iptables(I've been too lazy, still waiting to explore it).  But quiet comfortable with ipchains.
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.


Accepted Solution

MFCRich earned 200 total points
ID: 7098659
Since I've gone over to iptables I don't use ip_masq_ftp but it should still be there. If your system loads the iptables module then you will not be able to load in any ipchains modules -- they are mutually exclusive.

If you know ipchains then learning iptables will be a snap.

> iptables -t nat -A POSTROUTING -o <ext_if> -j MASQUERADE

will masquerade everything going out <ext_if> (eth1, ppp0 ?)

> iptables -A INPUT -i <ext_if> -m state --state ESTABLISHED,RELATED -j ACCEPT

will allow the responces back in. If you are forwarding as well you will probably want this rule;

> iptables -A FORWARD -i <ext_if> -m state --state ESTABLISHED,RELATED -j ACCEPT


Expert Comment

ID: 9078465
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 12

Expert Comment

ID: 10004305
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: MFCRich {http:#7098659}

Please leave any comments here within the next seven days.

EE Cleanup Volunteer

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question