Forums

The009
The009
Offline
Resolved
0 votes
Sorry if this has been aswered. I did some searching and could not find an answer.

Scenario.
- ClearOS-Gateway & Server -

enp1s0 - Wan
enp2s5 - HotLan - 10.0.0.1 - DHCP Server
enp3s0 - Lan - 192.168.1.1 - DHCP Server


Lan has full access to everything on all networks and works just fine.

I am after Hotlan (enp2s5) to have access to 10.0.0.1 port 80,
Keeping WAN (enp1s0) access to port 80 Blocked.

Any help would be greatly appreciated.
Tuesday, August 21 2018, 02:05 AM
Share this post:

Accepted Answer

Tuesday, August 21 2018, 08:52 AM - #Permalink
Resolved
1 votes
As a new poster, your first couple of posts get moderated so don't appear immediately.

As you have discovered the HotLAN is isolated from the server. Please install the Custom Firewall module then try this rule from the command line:
iptables -I INPUT -i enp2s5  -p tcp --dport 80 -j ACCEPT
If it does what you expect, copy and paste it into the custom firewall module changing "iptables" to "$IPTABLES"

If this is a new installation I, strongly suggest you change your LAN subnet from the default 192.168.1.0/24 and also avoid 192.198.0.0/24.
The reply is currently minimized Show
Responses (1)
  • Accepted Answer

    The009
    The009
    Offline
    Tuesday, August 21 2018, 03:35 PM - #Permalink
    Resolved
    0 votes
    Thank you!

    I new it was IPtables. I just could not get the syntax right.

    Thank you again for the proper command I was close when I was trying but no cigar.

    All is working wonderfully.
    The reply is currently minimized Show
Your Reply