[SOLVED] ubuntu: iptables => "ipconntrackftp" and changing default port (21) in proftpd
location: linuxquestions.com - date: November 9, 2011
This is driving me crazy I really really hope someone can help me out.
I had proftpd running and working (with the default port 21).
But now I want to use IPTABLES in combination with a different FTP port.
I have the following ip_conntrack_ftp , modprobe ip_conntrack and ip_nat_ftp
I added these modules by in my "/etc/modules" file (1 module per line) and rebooted my UBUNTU VPS
My iptables looks like this: http://vpsbible.com/security/harden-...eate-firewall/
Code:
Ubuntu iptables on nagios port 5666
location:
linuxquestions.com - date:
January 16, 2012
Guys... I am giving up... after trying to hard, search on internet, etc I decide to post here.
I have a nagios server and some clients...
Port 5666 are opened and I can connect to it on both server and client machines (telnet localhost 5666 got me connected)
The server does not have any iptables rules. The client does.
But no matter what rules I put there it does not work.
Form the server I cannot telnet on port 5666
telnet localhost 5666
[email protected]:/usr/local/nagios/etc/GroupMaster-1# telnet xx.xx.xx.xx 5666
Trying xx.xx.xx.xx...
I have used this rules:
# /sbin/iptables -A INPUT -p tcp --dport 5666 -j ACCEPT
# /sbin/iptables -A OUTPUT -p tcp --dport 5666 -j ACCEPT
But it does not work.
both server and client are running ubntu.
Thanks
VMware/Ubuntu/iptables routing configuration
location: ubuntuforums.com - date: June 20, 2012
I am trying to build a network in VMware environment and implement/test an iptables firewall for my thesis.
I have 3 virtual machines that each hosts an Ubuntu 12.10 installation.
RouterFW plays the role of the Router and Firewall and hosts 3 interfaces:
eth0: 192.168.160.128 / NAT, connects to the internet
eth1: 192.168.1.128 / Vmnet1 (Host-only), connects to the DMZ
eth2: 192.168.2.128 / Vmnet2 (Host-only), connects to an individual host, a workstation
DMZ is a DMZ that hosts web, mail and ftp server installations.
eth0: 192.168.1.129 / Vmnet1, connects with the RouterFW
Production Dpt. is a typical employee workstation
eth0: 192.168.2.129 / Vmnet2, connects with the RouterFW
I can traffic all incoming connections through PREROUTING for webserver, mailserver and ftp server ports and when I hit 192.168.160.128 on my host machine's browser I can access the website situated under the 192.168.1.129 DMZ vm.
My problem is that the workstation virtual machine is requi
Ubuntu automatic Restart
location: linuxquestions.com - date: August 26, 2010
Ubuntu restarts every 1 hour and sometimes around 3 am in the morning. It is happening for the past few weeks i didn't find any help for this problem in the net. Please reply if there is any way to find why it is happening or how to stop if from doing an auto reboot
Dual WAN on Ubuntu/Iptables
location: linuxquestions.com - date: December 9, 2010
I'm using a Ubuntu Server sharing the internet connection to my network.
Currently I have two WANs. A DSL connection connected to eth1 (configured as ppp0) and a cable connection plugged into eth2.
And only eth1 is being shared over eth0 (the local network). What I want to do:
- Some services I want to go only by the secondary WAN (eth2). On that case, forward specific ports to it.
- Failover. If ppp0 fails, goes to eth2.
- Some IPs from our internal network will ALWAYS use internet via eth2.
Is it possible to do using Ubuntu/IPTables? I already did it before using pfSense, but don't know even how to start doing it on Ubuntu.
Thanks,
J.
iptables restart in Debian Etch
location: linuxquestions.com - date: August 6, 2007
Hello,
I'm trying to setup iptables on Debian Etch.
I added all the rule I need and now trying to find an easy way to start/stop iptables.
On Debian Etch 4.0, where is oldinitdscript.gz ?
I don't think it's there anymore. I checked /usr/share/doc/iptables/examples/ and examples/ doesn't exist.
So instead, I did iptables-save > iptables in /etc/network/if-up.d/ and chmod 700 and tried restarting it and I get:
/etc/network/if-up.d/iptables: line 2: *filter: command not found
/etc/network/if-up.d/iptables: line 3: :INPUT: command not found
/etc/network/if-up.d/iptables: line 4: :FORWARD: command not found
/etc/network/if-up.d/iptables: line 5: :OUTPUT: command not found
/etc/network/if-up.d/iptables: line 6: -A: command not found
/etc/network/if-up.d/iptables: line 7: -A: command not found
/etc/network/if-up.d/iptables: line 8: -A: command not found
/etc/network/if-up.d/iptables: line 9: COMMIT: command not found
Any suggestion?
Thanks.
[SOLVED] does iptables restart remove manual settings?
location: linuxquestions.com - date: August 18, 2012
I run this manually on my server:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
However, when I change the iptables script and restart iptables, it seems to remove the above routing. Is that normal?
Do I have to add that routing into my current script?
service iptables restart does not work
location: linuxexchange.com - date: January 1, 1970
I am trying to add the following line in the /etc/sysconfig/iptables in CentOS so I will be allowed to access mysql.
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
I already did # service iptables restart and that doesn't resolve this. I have already done this a couple of times for other ports and a simple service restart does not help. Is there a way to go around this without rebooting the server?
nginx 502 bad gateway after ubuntu server restart
location: linuxexchange.com - date: January 1, 1970
I have a situation with an ubuntu server that is configured to run with nginx and fastcgi. The problem is that after a restart any request is giving 502 bad gateway in browser.
In error log the error looks like this:
connect() to unix:/var/run/fastcgi.socket-4 failed (2: No such file or directory) while connecting to upstream
after I create the file manually (i do not know if this is correct) the error is changing to:
connect() to unix:/var/run/fastcgi.socket-4 failed (111: Connection refused) while connecting to upstream
nginx server has configuration settings for each website like this:
location ~ \.php$ {
fastcgi_pass unix:/var/run/fastcgi.socket-4;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD
[SOLVED] Cannot restart Ubuntu after replacing Unity with Gnome and purging lightdm
location: linuxquestions.com - date: September 25, 2012
I am running Ubuntu 11.10. I used the directions here to replace Unity with Gnome. It seemed to work fine until the end of step 2 when I rebooted the computer. When I chose the default option, I just got a black screen. When I choose the restore option and then "Restore normal boot" I get
Code:
please wait...
Page: 1 2 3 4 5 6 7 8 9 10