- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ipfilter and ipftest problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2012 04:20 AM
02-08-2012 04:20 AM
Hello,
I have a 11.31 HPUX installed on itanium. I'm setting up ipfilters and tried to test some rules
# IPFilter A.11.31.17.05 HP IPFilter 3.5alpha5
IPFilter.IPF-HP A.11.31.17.05 HP IPFilter 3.5alpha5
IPFilter.PFIL-HP A.11.31.17.05 HP IPFilter PFIL Interface
I have a rule that allows udp's in out in a range of ports.
grep 192.168. /tmp/ipf_temp.conf
pass in quick proto udp from 192.168.1.0/24 to 192.168.1.0/24 port = 5300 keep state
pass out quick proto udp from 192.168.1.0/24 port = 5300 to 192.168.1.0/24 keep state
pass in quick proto udp from 192.168.1.0/24 to 192.168.1.0/24 port 137 >< 138 keep state
#pass in quick proto udp from 192.168.1.0/24 to 192.168.1.0/24 port = 138 keep state
pass out quick proto udp from 192.168.1.0/24 port 137 >< 138 to 192.168.1.0/24 keep state
ipftest shows this rule as blocked
ipftest -r /tmp/ipf_temp.conf
opening rule file "/tmp/ipf_temp.conf"
in udp 192.168.1.1,138 192.168.1.255,138
input: in udp 192.168.1.1,138 192.168.1.255,138
block ip 28(20) 17 192.168.1.1,138 > 192.168.1.255,138
--------------
in udp 192.168.1.1,138 192.168.1.25,137
input: in udp 192.168.1.1,138 192.168.1.25,137
block ip 28(20) 17 192.168.1.1,138 > 192.168.1.25,137
If i remove the >< and replace it by port = 137 or port = 138 it allows it to pass
Is there anything wrong with my test input or the ipf.conf rules
Thanks
Andreas
Solved! Go to Solution.
- Tags:
- IPFilter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2012 08:17 AM
02-09-2012 08:17 AM
Solutionpass in quick proto udp from 192.168.1.0/24 to 192.168.1.0/24 port 137 >< 138 keep state
This would allow the UDP traffic if the port number is greater than 137 but less than 138. Since the port numbers must be integers (i.e. port 137.5 cannot exist), there are no ports that could sastisfy this condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2012 01:01 AM
02-15-2012 01:01 AM
Re: ipfilter and ipftest problem
Thanks.
Logical :) i thought that the values 137 and 138 were included. So if i want to include the two values whats the syntax? Except the now obvious 136><139 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2012 12:02 PM
02-15-2012 12:02 PM
Re: ipfilter and ipftest problem
http://coombs.anu.edu.au/~avalon/examples.html#ports
There does not seem to be a way to specify a port range in inclusive fashion, so as far as I understand, 136><139 is the only way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2012 09:56 PM
02-20-2012 09:56 PM
Re: ipfilter and ipftest problem
Thanks for your help :)