wesupport

Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Shorewall forward reject – How to resolve the error

by | Feb 14, 2021

Stuck with the error Shorewall forward reject? We can help you.

Shorewall is a firewall tool that makes the task of network security easier. However, the error is the result of rejecting the connection request.

As part of our Server Management Services, we assist our customers with several Shorewall errors.

Today, let’s get into the details on how our Support Engineers fix the error, Shorewall forward reject.

 

Why Shorewall forward reject?

We use Shorewall as a firewall for security purposes. The rules added in the Shorewall will reject access from unwanted IP addresses.

All the rules are present in the following configuration file.

/etc/shorewall/rules

Rules in this file govern connection establishment. It allows requests and responses automatically using connection tracking.

The rejected/dropped packets logged out of the INPUT or FORWARD chains indicate the following.

  1. Users zone definitions screw up and the host sending the packets or the destination host isn’t in any zone.
  2. The source and destination hosts are both connected to the same interface and user don’t have a policy or rule for the source zone to or from the destination zone or user haven’t set the route back option for the interface in /etc/shorewall/interfaces.
  3. Two firewall interfaces connect (from different zones) to the same hub or switch.

Moving ahead, let’s see how our Support Engineers fix this error.

 

How can we resolve this problem?

At Bobcares, where we have more than a decade of expertise in managing servers, we see many customers face the error, Shorewall forward reject.

Now, let’s see how our Support Engineers fix it.

Recently, one of the customers approached us with SHOREWALL:FORWARD:REJECT error log from the users /var/log/messages file. The customer was unable to access google.com from his LAN.

While checking Shorewall configuration files, we could trace that the entry ‘all all REJECT info in the cat /etc/shorewall/policy Shorewall configuration is the cause of the problem.

cat /etc/shorewall/policy
$FW all ACCEPT
loc $FW ACCEPT
all all REJECT info

Thereafter, in order to resolve the issue, we add the following line in the cat /etc/shorewall/policy.

loc net ACCEPT

It indicates that it opens all ports to outside for LAN and so the connection had established.

Similarly, another user came to us with the following error message.

Jun 27 15:37:56 gateway kernel: Shorewall:all2all:REJECT:IN=eth2
OUT=eth1 SRC=192.168.x.x
DST=192.168.x.x LEN=67 TOS=0x00
PREC=0x00 TTL=63 ID=5805 DF
PROTO=UDP SPT=1803 DPT=53 LEN=47

On further checking this problem, we traced that 192.168.x.x was in the “dmz” zone and 192.168.x.x is in the “loc” zone.

Finally, the error had resolved.

[Failed to resolve the error? We’ll fix it for you.]

 

Conclusion

In short, the ‘Shorewall forward reject’ error mainly occurs when there is any misconfiguration or missing in the rules added to the Shorewall configuration files. Today, we saw how our Support Engineers helped the customers in fixing this problem.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags