ClearFoundation Tracker - ClearOS
View Issue Details
0005911ClearOSapp-firewall - Firewallpublic2015-11-03 20:052020-03-04 09:48
user2 
 
lowminorhave not tried
closedsuspended 
7.1.0 
 
0005911: PPTP forwarding only supports first LAN
There's a special block of code to handle PPTP forwarding:

            for __, ifn in pairs(LANIF) do
                if if_exists(ifn) then
                    ip, netmask, network, prefix = GetInterfaceInfo(ifn)

                    for ___, ifn_wan in pairs(WANIF) do
                        iptables("filter",
                            string.format("-A FORWARD -i %s -o %s -p %d -d %s -j %s",
                            ifn_wan, ifn, r_proto, r_addr, FW_ACCEPT))
                        iptables("filter",
                            string.format("-A FORWARD -i %s -o %s -p tcp -d %s --dport %s -j %s",
                            ifn_wan, ifn, r_addr, r_port, FW_ACCEPT))
                    end

                    -- XXX: Can only have one of these...
                    break
                end


The PPTP forwarding is only done on the first LAN and then the firewall bails. Is this required? Can the firewall add the relevant rules for all LANs?
No tags attached.
Issue History
2015-11-03 20:05user2New Issue
2015-11-03 20:06user2Statusnew => confirmed
2020-03-04 09:48NickHNote Added: 0013361
2020-03-04 09:48NickHStatusconfirmed => closed
2020-03-04 09:48NickHResolutionopen => suspended

Notes
(0013361)
NickH   
2020-03-04 09:48   
Migrated to https://gitlab.com/clearos/clearfoundation/app-firewall/issues/24 [^]