0
votes
0answers
11 views

Fail2Ban on CentOS 6.5 Never Bans

Environment: *CentOS 6.5 *Fail2Ban 0.8.14-1 *date outputs the correct date Behavior: Fail2ban starts successfully, but does not create iptables blocks after bad SSH login attempts. I'm only concerned ...
2
votes
1answer
40 views

Stateless NAT with CentOS 6

I'm looking to set up the following: ---[IVR 1] | (internet)----[CentOS box]---+---[IVR 2] | ...
0
votes
1answer
106 views

Fail2Ban - Iptables - Set does not exist

I have a very strange problem with fail2ban/iptables. Something is not working right, but I can't figoure out what. I have added this conf & and filter for fail2ban: [wordpress-register] enabled ...
0
votes
1answer
43 views

blocking ip on linux(CENTOS) [closed]

I m blocking an ip from my centos server using iptables: iptables -A INPUT -s $ip -j DROP service iptables save however my ip is still able to access the ip and even view websites hosted on this ...
1
vote
2answers
299 views

Centos 7 save iptables settings

Problem: iptables resets to default settings after server reboot. I'm trying to set rule like this: iptables -I INPUT -p tcp --dport 3000 -j ACCEPT after that I do: service iptables save and it ...
1
vote
1answer
38 views

How to forward a port to multiple internal ips

I have a Centos 6 64 bit server with OpenVPN installed. I'm using this iptables rule to forward a port for an OpenVPN user: iptables -t nat -A PREROUTING -p tcp -m tcp --dport PORT -j DNAT ...
-1
votes
1answer
25 views

command not foundbles-config error on service firewall restart

This is a follow-up question after I fixed my initial problems: I have a CENTOS Linux VPS. I have the following in my IPTABLES script to run when my VPN restarts, but I get errors when I do a service ...
1
vote
1answer
45 views

IPTABLES command that end with ACCEPT or DROP fail on service firewall restart

I have a CENTOS Linux VPS. I have the following in my IPTABLES script to run when my VPN restarts, but I get errors when I do a service firewall restart I've ran each of the commands below manually ...
0
votes
1answer
150 views

Block outgoing connections on RHEL7/CentOS7 with firewalld?

RHEL7/CentOS7 features a new firewalld firewall service, that replaces the iptables service (both of which use iptables tool to interact with kernel's Netfilter underneath). firewalld can be easily ...
0
votes
2answers
156 views

Why won't iptables allow MySQL connections?

For some reason mysql connections from a specific IP address aren't allowed. This is the rule I have (grabbed from iptables-save): -A INPUT -s 12.34.56.78/32 -p tcp -m state --state NEW -m multiport ...
1
vote
1answer
64 views

How do I forward localhost traffic to a remote host with iptables?

I would like to set up my CentOS 6.5 box to forward connections to localhost (127.0.0.1) to the same port on a remote machine (e.g. 10.0.3.10). I've tried the iptables rule below, but when I attempt ...
0
votes
2answers
66 views

Iptables unable to allow ssh through second interface

I am having an issue where as I am unable to get SSH outgoing connections to be preformed with my current firewall rules from my second interface (eth2). The machine I am trying to connect from has ...
0
votes
1answer
103 views

iptables / firewall blocking traffic (even SSH) on my dedicated box

Can someone please take a look at this iptables data and tell me what's wrong with it? The paste 24h has been a nightmare, I couldn't even SSH to my server, and the only way I could manage to get the ...
1
vote
1answer
107 views

puppet service not stopping service (iptables)

I am trying to use a puppet master 3.1.1 to manage iptables on various servers. My local puppet agent is 2.7.19, the server OS is CentOS 5.4. ...
-1
votes
2answers
85 views

Can't configure httpd.conf

I have some problems with httpd and can't configure it(can't open in browser). I have done it a lot of times, but now I missing something. I have installed CentOS 6.5 on virtualbox with ubuntu 14. ...
0
votes
1answer
40 views

Cannot browse web server

I have a server running Apache on Centos 6.4 and I cannot get to browse the box - SSH works fine and as does FTP but nothing http will work. httpd is started, SELinux is not running and I have opened ...
0
votes
1answer
57 views

iptables slows down outgoing web request

Before I enabled iptables, requests via curl to this url were instant. But after configuring iptables it takes almost 30-40 seconds to get response. How do I make particular url white listed so it can ...
-1
votes
4answers
317 views

iptables not installed on centos

If a machine does not have iptables installed, is there still a firewall running? If yes, how to I disable / change rules? if I enter the command iptables I receive the response: iptables v1.4.7: ...
0
votes
1answer
523 views

No route to host centos

I am trying to allow a port through a firewall on centos 6. The error I am receiving is telnet: connect to address 80.xx.xx.xx: No route to host The port I am trying to allow is 5666. If I disable ...
0
votes
2answers
64 views

resetting iptables seems to make connections clear faster

I have iptables setup on 2 servers. Server#1 is public and Server#2 only allows the ip address of Server#1 to have ACCESS. Server#2 has a mySQL database that Server#1 queries. I ran a query and it ...
0
votes
2answers
58 views

Openning a port in my CentOS server [closed]

I'm trying to open a port in my CentOS server... I tried using iptables, adding the "-A INPUT -p udp -m udp --dport portnum -j ACCEPT" and didn't work. I tried installing CSF, adding the ports and ...
0
votes
1answer
57 views

Unable to get out of rescue mode after a spontaneous reboot

I am experiencing a weird problem where the CentOS 6.5 system I was using spontaneously underwent a restart that was not authorized by me, and then enters Rescue Mode, where I am unable to diagnose ...
1
vote
1answer
275 views

Centos iptables configuration for Wordpress and Gmail smtp

Let me start off by saying that I'm a Centos newby, so all info, links and suggestions are very welcome! I recently set up a hosted server with Centos 6 and configured it as a webserver. The websites ...
1
vote
1answer
940 views

CentOS 6.5 Iptables conntrack module [duplicate]

I have a VPS server on which CentOS 6.5 x64 is installed. Kernel version from uname command is 2.6.18-028stab107. When I want to use iptables rate limiting like in the following command, I got the ...
0
votes
0answers
314 views

Apache bench failing with error “No route to host”

Got a new dedicated box. Installed CentOS 6.5 Installed KVM Installed a CentOS 6.5 guest rsync'd websites/database/settings etc over from existing VPS. Set up "dedi.mydomain.com" in DNS to test it ...
0
votes
1answer
205 views

Can't use yum on guest - suspect port 80 forwarding in iptables on host at fault?

What's wrong with this set-up? Both host and guest are CentOS 6.5 Specifically, I can't run yum on the guest. I can ping happily to/from the guest, including pinging mirrorlist.centos.org If I ...
0
votes
0answers
1k views

“Network error: connection refused” when trying to SSH to guest VM

CentOS 6.5 host, CentOS 6.5 guest. Using kvm. VM gets a local IP from the virbr0 interface. I've set up some port forwarding in iptables. port 80 forward works, but my SSH forward does not. ...
0
votes
0answers
32 views

Forward incoming email traffic

I have two CentOS servers - one for email and one for web hosting. One domain, which we do not control, has the MX record incorrectly pointing to the web host. What iptables config is needed to ...
5
votes
3answers
4k views

iptables nat does not exist

Today my iptables nat on the host system stopped working and I have no clue what happend! (That's very bad, I know) All commands are executed as root user. If I run $ iptables -t nat -L I get the ...
0
votes
1answer
160 views

Why does installing vzctl on a fresh Centos6.5-minimal break network connectivity?

I seem to have encountered a bug in vzctl's installation. Upon installing it in a clean CentOS6.5-minimal installation according to the official wiki, network connectivity is limited to pinging IP ...
0
votes
1answer
405 views

IPTables block all traffic and only allow certain ports

I am trying to configure iptables on a CentOS 6.5. I am trying to block all traffic to the server and then only open certain ports that I need, such as port 80. At the moment I've removed port 80 from ...
0
votes
1answer
73 views

iptables configuration failed

My iptables just suddenly became unable to be edited. It still runs fine but I am unable to do anything to the configuration such as opening or closing ports. I keep getting this error: ...
1
vote
0answers
223 views

How to configure nDPI for iptables

I am new to nDPI, I have installed nDPI but when I add rules like; iptables -I OUTPUT -m ndpi --http -j REJECT it shows error iptables v1.4.7: Couldn't load match ...
1
vote
1answer
58 views

Having difficulty connecting to port

I'm giving Linode a try, and I just launched my first instance running CentOS. I've been unable to connect to a port on the box even if I completely drop the firewall. (My script does successfully ...
0
votes
1answer
52 views

GW box not allowing internet from internal computers

I have a relatively new GW box ( CentOS 6.5 ) that can ping www.apple.com. When I change computers inside my network to use this GW as †he default GW, they cannot access the internet. So then I ...
1
vote
1answer
345 views

Can't send email via PHPMailer

I'm using the PHPMailer class to send email from an online application, it works fine on development server, and if I disable iptables. However whenever iptables is started, no mail sends - it seems ...
0
votes
1answer
66 views

Cannot access Asterisk sip from remote location

I've used this tutorial to configure my iptables so I can access asterisk sip from outside of my server. My iptables -L looks like this Chain INPUT (policy ACCEPT) target prot opt source ...
0
votes
2answers
54 views

APF and iptables on router - disallow SSH on specific subnet host

I have a CentOS terminal working as a router with APF installed. Also 1 terminal with 3 NICs (3 IPs) is using that router as a Gateway to access the internet. What I want is APF to block SSH access, ...
1
vote
3answers
113 views

Despite of several attempts, unable to open port 25

This question may have been asked many times here but after several failed attempts, I repeat the history: How do I open port 25 port on my server running CentOS. Here is my iptables config: Chain ...
0
votes
1answer
39 views

Forward a host network traffic to another host with the exception of the ssh service

I am trying to redirect all the network traffic received in a old host to a different new host. For that i created two new rules on iptables of the old host: echo 1 > /proc/sys/net/ipv4/ip_forward ...
0
votes
1answer
35 views

OpenVPN On Dual Wan

I have a Dual-WAN Linux Box WAN1 & WAN2, Installed on it OpenVPN Server, is there a way to make OpenVPN server accept connections from both interfaces, as it now it only accepts connection from ...
0
votes
1answer
64 views

Turn IPTables Flush off CentOS

I made some changes to my iptables in a centOS machine. I noticed once I shut the server off it flushes all my iptables and goes back to the default. Is there a way to turn that off?
0
votes
2answers
149 views

Portforwarding with IPTABLES and Remote IP detection

I was able to forward 80 port from my primary server 192.168.90.1 to the second one 192.168.90.2 with IPTABLES The primary server has a public address X.X.X.X so I forwarded X.X.X.X:80 -> ...
0
votes
1answer
158 views

Adding port 25 to iptables won't getting to open centOS

I am facing a problem to open port 25 with iptables on my CentOS machine. I checked the connection by 'nmap' and 'telnet' but both failed. The follow things I did to trying make this work: iptables ...
0
votes
0answers
93 views

Can't run CSF on the host machine using Open VZ

I managed to configure CSF on my three VM inside OpenVZ, but when I try to run it on the host, all the VMs become unreachable. I can see that the host is been attacked, and it would be critical if it ...
0
votes
0answers
58 views

enable user to connect to external pptp VPN server

I want to enable local user to connect to remote VPN server I added those rules to the iptables but still not able to connect -A OUTPUT -p gre -j ACCEPT -A OUTPUT -p tcp -m tcp --dport 1723 -j ACCEPT ...
0
votes
0answers
68 views

openvpn doesnt start due to iptables and mangle (VMware)

I have installed openvpnas on redhat5.10 via the package from openvpn. When I start the server it will start the webserver for administration but it wont start the the openvpn service. So I did my ...
0
votes
1answer
296 views

some outgoing http connections fail

After a recent reboot, my server is unable to connect via http, but not all the time. I have an accept rule for port 80, here is my iptables: Chain INPUT (policy ACCEPT) target prot opt source ...
-1
votes
1answer
132 views

Why does this iptables config prevent munin from working?

I have created an iptables config which I thought that I understood, however it seems to be preventing munin from generating graphs and I'm not sure why. If I disable iptables, munin will generate ...
1
vote
2answers
410 views

Allow OpenVPN through a specific port - CentOS 6.5

I own a VPS (CentOS 6.5). I have installed OpenVPN on this server. Everything works fine, I can connect and surf, etc. Let's say my IP of the server is: 1.2.3.4. When I connect to my VPS my IP is ...