1: Error message:
When I restart the firewall using SSH I get this error message regarding a forward-rules:
Code: Select all
Warning: Section 'redirect_enabled_number_0' has no target specified, defaulting to DNAT
Code: Select all
config redirect 'redirect_enabled_number_0'
option name 'SMTP(25)'
option src 'wan'
option dest 'lan'
option proto 'tcp'
option src_dport '25'
option dest_ip '10.0.0.100'
option dest_port '25'
2: Creating new rule:
It seems creating blocking rules in the GUI is not working very well by the look of the threads about the subject on the internet and my own experience.
I wanna block an external SMTP server, let's say IP: 80.62.117.12, port: 25 (but ONLY port 25, e.g. 110 should be accepted)
I'm all new to Gargoyle/OpenWRT, but my guess is I have these options:
1: Do it on the web gui (doesn't work).
2: Edit the /etc/config/firewall file by adding something like:
Code: Select all
config rule
option src wan
option dest lan
option src_ip 80.62.117.12
option dest_port 25
option target REJECT
Code: Select all
config restriction_rule 'rule_3'
option is_ingress '0'
option description 'Block IP'
option remote_addr '80.62.117.12'
option remote_port '25'
option local_port '25'
option proto 'both'
option enabled '1'
Code: Select all
iptables -A INPUT -s 80.62.117.12 -p tcp --destination-port 25 -j DROP
Thanks in advance.
Using:
Gargoyle Version:1.7.0 on TP-Link WR1043ND