Forums

kuenn leow
kuenn leow
Offline
Resolved
0 votes
i have 03 network
- 01 LAN mgtNet
- 01 HOT LAN homeNet
- 01 HOT LAN labNet

can someone advice how to allow my HOT LAN access to LAN for syslog(Port 514/UDP)
the custom firewall rule below does not seem to work.

# vi /etc/clearos/firewall.d/custom
:
iptables -I FORWARD -s 10.0.0.0/24 -d 192.168.11.241 -p udp --dport 514 -j ACCEPT # allow labNet to syslog-514
Saturday, June 18 2016, 08:38 AM
Share this post:

Accepted Answer

Saturday, June 18 2016, 09:47 AM - #Permalink
Resolved
0 votes
I thought you could only have one HotLAN per installation.

Anyway, the short answer is change FORWARD to INPUT. INPUT is for traffic destined for ClearOS. FORWARD is for traffic destined through ClearOS (either WAN -> LAN or LAN -> WAN).

You could (should?) also restrict the rule further to the HotLAN interface in question with a "-i your_HotLAN_interface". I am not sure if you need a further rule to allow replies back. If the above does not work, post back with the result of "iptables -nvL" between code tags.
The reply is currently minimized Show
Responses (2)
  • Accepted Answer

    kuenn leow
    kuenn leow
    Offline
    Sunday, June 19 2016, 12:01 AM - #Permalink
    Resolved
    0 votes
    works now.... thank you.

    my syntax:
    iptables -i eth2 -I INPUT -s 10.0.0.0/24 -d 192.168.11.241 -p udp --dport 514 -j ACCEPT # allow labNet to syslog-514
    The reply is currently minimized Show
  • Accepted Answer

    kuenn leow
    kuenn leow
    Offline
    Saturday, June 18 2016, 11:55 PM - #Permalink
    Resolved
    0 votes
    thank implemented as you suggested n work straight out.
    thank you

    my syntax:
    iptables -i eth2 -I INPUT -s 10.0.0.0/24 -d 192.168.11.241/32 -p udp --dport 514 -j ACCEPT # allow labNet to syslog-514
    The reply is currently minimized Show
Your Reply