[SOLVED] FTP upload fails using iptables
location: ubuntuforums.com - date: August 14, 2008
I have a simple firewall script in Ubuntu, and I have no problem with it except for uploading files via ftp. I can connect to the ftp server, list directory, even download files, but upload hangs at 100%. Using wireshark I am getting: FTP-DATA packet from my computer to the server, ICMP packet type destination unreachable from my router to my computer and so on.
I guess I am missing sg from my script, but can't figure out what. Note that turning off the firewall (INPUT and OUTPUT chain to ACCEPT) solves the problem. The computer itself is a client, not a server.
### load the modules
echo "[+] Loading modules..."
### flush existing rules and set chain policy setting to DROP
echo "[+] Flushing existing iptables
[SOLVED] FTP Server behind NAT (IPtables) List FTP directories Problem
location: linuxquestions.com - date: January 23, 2012
the FTP server (10.205.13.97) is behind a firewall (NAT).
I can login to the ftp server without any problems from a remote machine. However, I can't list directories (ls) from remote machine. Even passive mode is timed-out.
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
500 Illegal PORT command
ftp: bind: Address already in use
Passive mode on.
227 Entering Passive Mode (50,17,79,90,251,162).
ftp: connect: Connection timed out
I am using Proftpd as the FTP server (Ubuntu).
The IpTables for the firwall box (Ubuntu) was defined as the following (ports 20 & 21 is forwarded):
>echo 1 > /proc/sys/net/ipv4/ip_forward
>iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:ftp to:10.205.13.97:21
DNAT tcp -- anyw
[SOLVED] Block outgoing for particular user at particular time using iptables
location: linuxquestions.com - date: February 21, 2013
I am using Ubuntu 12.04 LTS, and I wanted to block everything to particular user at particular time. For that I ran
[solved] ftp permissions cant upload 553
location: ubuntuforums.com - date: September 13, 2011
Having a problem where I am unable to upload/delete files or folders in certain directories.
ls -l /home/robbieb/
drwxr-xr-x 16 robbieb www-data 4096 Sep 13 09:52 html
I can upload and delete files to html folder no problem
but sub folders no go.
I had expanded a tar.gz in html folder because I was copying our live website over into this test environment. I did this using root. The website works fine but there is something up with my permissions. I think I remember reading something about permissions getting transferred using tar.gz but not sure if that could be it, permissions on the subdirs are 755
drwxr-xr-x 2 1015 1024 4096 Sep 8 13:06 modules
When I try to upload a file to app/etc/modules I get 553. I've tried with other file types and folders. And even if I'm just 1 folder in, ie html/app I still can't upload to that dir either.
Command: CWD /home/robbieb/html/app/etc/modules
Response: 250 Directory successfully changed.
Response: 257 "/
How to upload file using FTP command?
location: linuxquestions.com - date: September 20, 2011
How do I upload a file using FTP command.
The files are located inside server A. I am now connected in server A and wish to upload it to server B.
Server A: 192.168.1.1
Server B: 192.168.1.2
FTP u: admin
FTP p: admin123
From Server A:
> open 192.168.1.2
> put billing_billing.sql
local: billing_billing.sql remote: billing_billing.sql
local: billing_billing.sql: No such file or directory
So how do I upload the sql file from server A into server B?
[SOLVED] using iptables to restrict my browser to a limited list of websites
location: linuxquestions.com - date: April 13, 2013
I have a second partition on my computer with an Ubuntu 12.10 system installed. I select and use this system exclusively for online banking. How can I set up the iptables to confine the browser to communicating only with these online bank sites?
how to create a new user for ftp upload in a web server using vsftpd centos
- date: June 17, 2012
I have a web server which does virtual web hosting and for each virtual host, each virtual user has been created which has access only to its respective home directory and can upload via ftp.
Now i want to create a new user(not for a new website) which can have access only to its home directory when it does ftp upload and download. So is it possible to do that because the new user is not for a new website and in httpd configuration what should i give in the "ServerName"?
Or is it ok if i give the domain name of the web server hosting those? will it not conflict?
EXAMPLE: <VirtualHost *:80>
ServerAdmin [email protected]
CustomLog logs/dummy-host.example.com-access_log common
where xxx.com is the domain of the webserver and sarah is the new user.
[SOLVED] Printing via network using the HP DeskJet 3650 fails
location: linuxquestions.com - date: January 8, 2010
I'm having another frustrating problem. I can't print via our network printer (HP DeskJet 3650) which is connected to a WinXP PC on the network. My laptop is wireless connected to the network. My distribution is openSUSE 11.2 and I tried setting up the network printer via CUPS:
Went to http://localhost:631
Device: Windows Printing via SAMBA
Device URI: smb://UMBRELLA/SMOKE/HP3600
Model: HP DeskJet 3650, hpcups 3.9.8 (en)
Printer State: idle, accepting jobs, published.
Then clicked the "Print Test Page" button. At this point the printer actually starts making sounds.. the same sounds it makes when it's preparing to print something. But then, it stops. The printing job is still present in the printer queue at the WinXP PC, but it won't print.
So I looked at this documentation: http://www.linuxfoundation.org/colla...sdocumentation
Step 2 from this documentation tells me to install a PPD file.. which I can't find anywhere. It's not o
[SOLVED] securing ssh using iptables?
location: linuxquestions.com - date: June 18, 2015
I was recently reading an article on better securing ssh. It recommended taking a look at /var/log/auth.log to see if there had been any suspicious activity. I did that, and sure enough, someone with a Chinese IP had been trying to ssh into my home desktop using root, admin, and postgres logins. It looks like they spent about 1.5 hours without success, then gave up. So I started looking into ways to tighten up ssh on my machine.
I should mention that ssh runs on an alternate port before getting to this machine, so the simplest form of obscuring the machine's presence has been taken. But that, of course, doesn't provide much security. I took the additional step today of disallowing root logins. But I wanted to do more.
The original article I'd read talked about setting up fail2ban, which I'm sure is effective. But I was hoping I'd find some way, using utilities already on my machine, to do something similar. So I ran across some articles that described how to c
[SOLVED] Questions on setting up NAT using iptables
location: linuxquestions.com - date: August 9, 2014
I am trying to set up NAT on a LinuxMint box, but failing at it. Need some help. Sorry for the verbosity of this post, but I wanted to give all relavent details I could think of.
The problem I am trying to solve is access to my Plex Media Server from outside my LAN. I do not want to use Plex's official solution, which is to set up an account with them and then use their servers as a middleman for connection to my media server. I want to keep this totally under my control, with no third-party middleman that could potentially cause privacy/security concerns.
So my proposed solution is to VPN from my remote client into my home LAN, and then access Plex from inside my LAN. This knocks the Plex companies account and middleman server out of the picture. The issue is that the Plex Media Server (the application running on my home Linux box) accepts connections without authentication from the home LAN, but requires authentication (again, through the Plex company middleman servers) f
Page: 1 2 3 4 5 6 7 8 9 10