LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   firewalld port forwarding sometimes not working (https://www.linuxquestions.org/questions/linux-security-4/firewalld-port-forwarding-sometimes-not-working-4175561404/)

packets 12-14-2015 05:23 AM

firewalld port forwarding sometimes not working
 
I have configured firewalld to port forwarding. Below are my config:

Code:

# firewall-cmd --zone=public --list-all
public (default, active)
  interfaces: eth0
  sources:
  services: dhcpv6-client ssh
  ports: 25/tcp 25/udp 26/tcp
  masquerade: yes
  forward-ports: port=26:proto=tcp:toport=8026:toaddr=X.X.X.X
        port=25:proto=tcp:toport=8025:toaddr=X.X.X.X
  icmp-blocks:
  rich rules:

I am testing port forwarding by doing telnet to port 25 in a matter of seconds

telnet X.X.X.X 25 --> ok
after 1 second
telnet X.X.X.X 25 --> ok
after 1 second
telnet X.X.X.X 25 --> ok
after 1 second
telnet X.X.X.X 25 --> not responding
after 60 seconds
telnet X.X.X.X 25 --> ok

So in short it is intermittent. Is there a config settings that causing this behavior? Tried to check /etc/firewalld/firewalld.conf but I did not see any related settings.

Anyone knows if this is the normal behavior of port forwarding of firewalld

unSpawn 12-15-2015 05:49 PM

AFAIK firewalld only produces iptables rule sets, nothing else. So if there's problems you IMHO should be analysing them like you would troubleshoot any other regular network (device) problem.


All times are GMT -5. The time now is 03:42 AM.