ClearFoundation Tracker - ClearOS
View Issue Details
0000042ClearOSapp-firewall-custom - Custom Firewallpublic2010-03-15 03:162010-07-14 20:40
timb80 
dsokoloski 
normalmajoralways
closedfixed 
5.1 
5.25.2 
0000042: Advanced Firewall - Outgoing Block, Soure / Dest Ports swapped
Refer to forum thread by Sergiu
http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,7/func,view/id,7526/#7528 [^]

Source / Destination ports swapped in created iptables 'forward chain' rules, when attempting to create outgoing block via the advanced firewall module

To recreate:-
Network - Firewall section -Advanced - Outgoing Block
Protocol: TCP
Source Address: empty
Source Port (Range): empty
Destination Address: 10.1.2.3
Destination Port (Range): 80

[root@starlane ~]# iptables -L -n -v | grep 10.1.2.3
    0 0 DROP tcp -- * * 0.0.0.0/0 10.1.2.3 tcp spt:80

Now swap - attempt source port block
Protocol: TCP
Source Address: 10.1.2.3
Source Port (Range): 80
Destination Address: empty
Destination Port (Range): empty

[root@starlane ~]# iptables -L -n -v | grep 10.1.2.3
    0 0 DROP tcp -- * * 10.1.2.3 0.0.0.0/0 tcp dpt:80

Note the changes in spt / dpt in iptables rule
No tags attached.
Issue History
2010-03-15 03:16timb80New Issue
2010-03-17 15:11user2Statusnew => acknowledged
2010-07-07 13:07user2Assigned To => dsokoloski
2010-07-07 13:07user2Statusacknowledged => resolved
2010-07-07 13:07user2Fixed in Version => 5.2
2010-07-07 13:07user2Target Version => 5.2
2010-07-14 20:40user2Statusresolved => closed
2010-07-14 20:40user2Resolutionopen => fixed

There are no notes attached to this issue.