LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2015, 01:02 PM   #1
borgy95
Member
 
Registered: Mar 2012
Location: England
Distribution: Debian, Kali, CentOS 7
Posts: 64

Rep: Reputation: Disabled
Firewall-cmd blocks incoming connection when configured to allow


Hi, I've had success in the past with firewall-cmd but this seemingly simply task has caused me hours of pain.

I want to send syslog (using nxlog) from a windows machine to the Centos7 machine.

Windows client Centos 7 client
192.168.56.1 > 192.168.56.101

so I have added the rule

Code:
#firewall-cmd --permanent --zone=public --add-port=5140udp/tcp --add-source 192.168.56.0/24
#firewall-cmd --reload
#firewall-cmd --list-all
[root@localhost ~]# firewall-cmd --list-all
public (default, active)
  interfaces: enp0s3
  sources: 192.168.56.101 192.168.56.0/24
  services: dhcpv6-client ssh (entries from other rules)
  ports: 5140/udp 5140/tcp
  masquerade: no
  forward-ports:
  icmp-blocks:
  rich rules:
after adding this rule when I run nxlog it returns this error:
Code:
 2015-03-16 17:54:43 ERROR couldn't connect to tcp socket on 192.168.56.101:5140;
 No connection could be made because the target machine actively refused it.
Does anyone have any idea why this is happening? Or how I might go about troubleshooting this...

Its so frustrating cos this should be a 30sec job.
 
Old 03-18-2015, 01:25 AM   #2
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
Try setting selinux to permissive mode
Code:
setenforce 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue sg_modes cmd at cmd line, want to see the cmd in binary form NuUser Linux - Newbie 1 03-28-2012 08:08 AM
firewall blocks linuxquestions abh Linux - Networking 1 08-28-2010 12:49 AM
The best firewall, with ip and mac blocks? rowebil Linux - Security 9 03-20-2009 09:12 AM
Not allowing incoming ftp through firewall. crackerB Linux - Networking 6 08-07-2006 01:51 AM
Firewall blocks Samba? IchBin Linux - Networking 1 06-11-2005 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration