ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005911ClearOSapp-firewall - Firewallpublic2015-11-03 20:052020-03-04 09:48
Reporteruser2 
Assigned To 
PrioritylowSeverityminorReproducibilityhave not tried
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version7.1.0 
Target VersionFixed in Version 
Summary0005911: PPTP forwarding only supports first LAN
DescriptionThere'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?
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0013361)
NickH (developer)
2020-03-04 09:48

Migrated to https://gitlab.com/clearos/clearfoundation/app-firewall/issues/24 [^]

- Issue History
Date Modified Username Field Change
2015-11-03 20:05 user2 New Issue
2015-11-03 20:06 user2 Status new => confirmed
2020-03-04 09:48 NickH Note Added: 0013361
2020-03-04 09:48 NickH Status confirmed => closed
2020-03-04 09:48 NickH Resolution open => suspended