Computing.Net > Forums > Linux > IPtable Setting Problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

IPtable Setting Problem

Reply to Message Icon

Name: Omid Hosseini
Date: April 22, 2002 at 22:31:27 Pacific
Comment:

Hello ,
I have problem on my Cache Server ,
I upgrade to Linux 7.2 and want to use IPTable on it for Routing , NAT and Firewall,

This is PRoblem on NAT ,

When I want to Use NAT with IPTable, and FTP to other server on internet , With the Computer using Invalid IP ,
I connect to Remote Server but I ca'nt see the File on Remote Directory when usinf " ls " on Remote FTP Server ,
I Know problem on NAT Setting over IPTable ,
Please Told me how to set IPTable For FTP NAT ,
Waiting For Reply ,
-------------------------
This is MY NAT Configuration on IPTable :
But FTP Service Dos't Work on it ,


#!/bin/bash
/bin/echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -F
/sbin/iptables -F
# For Transparet Proxy
/sbin/iptables -t nat -A PREROUTING -p tcp -s 192.168.100.0/24 --dport 80 -j REDIRECT --to-port 8080
# FOR NAT
/sbin/iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -j MASQUERADE
-------------



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


I needhelp deleting Linux distro advice?



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: IPtable Setting Problem

iptables Setting Problem, www.computing.net/answers/linux/iptables-setting-problem-/7203.html

Network problem? www.computing.net/answers/linux/network-problem/21180.html

iptables prevent sending mail www.computing.net/answers/linux/iptables-prevent-sending-mail/18846.html