- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Help on iptable! ftp and OmniBack can't work!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 01:32 AM
04-14-2003 01:32 AM
Help on iptable! ftp and OmniBack can't work!
Thanks in advance,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 02:16 PM
04-14-2003 02:16 PM
Re: Help on iptable! ftp and OmniBack can't work!
I've quickly scanned your firewall, and it seems you're even blocking all non-privileged traffic?
Try allowing tcp traffic on ports > 1023, or use passive FTP, which doesn't need a callback connection.
I don't know OmniBack, so can't help you with that.
Good luck :)
Erik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 10:51 PM
04-14-2003 10:51 PM
Re: Help on iptable! ftp and OmniBack can't work!
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 08:28 AM
04-15-2003 08:28 AM
Re: Help on iptable! ftp and OmniBack can't work!
iptables -A OUTPUT -p tcp -j ACCEPT -d $msmeterp -s $eth0IP --sport 5555
Anything sent from client port 5555 to the cell manager will be allowed.
I'm guessing from your iptables config that you have already configured /opt/omni/.omnirc with the following option:
OB2PORTRANGE=50000-50050
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 01:13 PM
04-15-2003 01:13 PM
Re: Help on iptable! ftp and OmniBack can't work!
To Serve as an FTP server you have to accept INPUT packets to destination port 21. You Then have to reply using an OUTPUT to source port 21. Now that you have the control connection up you have to establish a second connection with an OUTPUT source port 20 which will reply with an INPUT to source port 20.
If you want to be an ftp client then it's backwards. You have to pass an OUTPUT packet with destination 21 and receive an INPUT packet with source port 21. When the data connection starts you will need to pass an INPUT packet with source port 20 and accept a reply with an OUTPUT packet of destination port 20.
#FTP SERVER:
iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --dport 21
iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --sport 21
iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --dport 20
iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --sport 20
This is what you already have.
If you want to FTP from the LINUX box to another FTP Server then you need:
#FTP Client:
iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --dport 21
iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --sport 21
iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --sport 20
iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --dport 20
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:13 PM
04-15-2003 09:13 PM
Re: Help on iptable! ftp and OmniBack can't work!
It seems that you have not loaded the connection tracking modules.
#modprobe ip_conntrack
#modprobe ip_conntrack_ftp
Hope your problem is solved
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 06:50 PM
04-16-2003 06:50 PM
Re: Help on iptable! ftp and OmniBack can't work!
Attached is my current iptables rules,
Well, for OmniBack, I have adopted Bill Douglass's suggestion and it is making progress in the sense that I can telnet cellmgr 5555 from Linux and vise visa, but Omniback came back with a new error as below, here msmarketp2 is Linux, msmeterp is cell manager:
"[Critical] From: BDA-NET@msmarketp2 "/opt" Time: 04/17/03 02:11:22
Cannot connect to Media Agent on system msmeterp, port 50007 (IPC Cannot Connect
System error: [110] Connection timed out
) => aborting.
[Critical] From: VBDA@msmarketp2 "/opt" Time: 04/17/03 02:11:22
Unexpected close reading NET message => aborting. Why?
Another strange thing is, .omnirc on this Linux, the OmniBack client did have defined OB2PORTRANGE=50000-50050, but it seems it is not working as I can see from running telnet msmeterp 5555 by running lsof -p 'telnet pid', I got the following,
telnet 30332 root 3u IPv4 287282 TCP msmarketp2:32925->msmeterp:omni (SYN_SENT)
So in my attachment I changed it to 30000:50050.
For ftp, since I am using Linux as ftp client, then I adopted Ron Kinner's comments
and I managed to run ftp msmeterp but strangely I went into passive mode when I issue "DIR" or "ls" in "ftp>",
Can Ron tell me how to use active mode?
Thanks a lot,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 05:54 AM
04-17-2003 05:54 AM
Re: Help on iptable! ftp and OmniBack can't work!
Ron