HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: IPFilter 9000 question on IP ranges
Operating System - HP-UX
1833314
Members
2836
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
07-09-2002 09:53 AM
07-09-2002 09:53 AM
I have successfully installed IPFilter on HP-UX 11.00. I can block an IP address but how do I block a range?
The synyax I use for one is:
block in log on lan0 from 128.165.161.10 to any
I want a range of 128.165.161.10 to 128.165.161.20
The synyax I use for one is:
block in log on lan0 from 128.165.161.10 to any
I want a range of 128.165.161.10 to 128.165.161.20
Why can't we all get along?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 10:16 AM
07-09-2002 10:16 AM
Re: IPFilter 9000 question on IP ranges
You can use bit masks, but I don't think ranges are supported:
block in log on lan0 from 128.165.161.0/8 to any
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 01:51 AM
07-10-2002 01:51 AM
Solution
Hi,
According to the features list at http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9901AA, IP ranges are supported:
Explicitly permits or denies a packet from passing through based on the following:
- IP address or a range of IP addresses
- IP protocol (IP/TCP/UDP)
- IP fragments
- IP options
- IP security classes
- TCP ports and port ranges
- UDP ports and port ranges
- ICMP message type and code
- Combination of TCP flags
- Interface
However, the way IPFilter defines and implements IP ranges is via subnet bitmasking as already mentioned by Harry.
In your case, it will not be efficient to use bitmasking for this purpose because you will need to specify pass in's for 20 times before the block in and then pass in any statement i.e.:
pass in log on lan0 from 128.165.161.1 to any
pass in log on lan0 from
128.165.161.2 to any
...
block in log on lan0 from 128.165.161.0/27 to any
pass in log on lan0 from any to any
Thus, it is instead easier for you to specify 11 times of block in's.
A scenerio whereby you can make use of bitmasking for this purpose is for example you wish to block from 128.165.161.8 to 128.165.161.31
In that case, you can do this:
pass in log on lan0 from
128.165.161.0/29 to any
block in log on lan0 from
128.165.161.0/27 to any
pass in log on lan0 from any to any
Hope this helps. Regards.
Steven Sim Kok Leong
According to the features list at http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9901AA, IP ranges are supported:
Explicitly permits or denies a packet from passing through based on the following:
- IP address or a range of IP addresses
- IP protocol (IP/TCP/UDP)
- IP fragments
- IP options
- IP security classes
- TCP ports and port ranges
- UDP ports and port ranges
- ICMP message type and code
- Combination of TCP flags
- Interface
However, the way IPFilter defines and implements IP ranges is via subnet bitmasking as already mentioned by Harry.
In your case, it will not be efficient to use bitmasking for this purpose because you will need to specify pass in's for 20 times before the block in and then pass in any statement i.e.:
pass in log on lan0 from 128.165.161.1 to any
pass in log on lan0 from
128.165.161.2 to any
...
block in log on lan0 from 128.165.161.0/27 to any
pass in log on lan0 from any to any
Thus, it is instead easier for you to specify 11 times of block in's.
A scenerio whereby you can make use of bitmasking for this purpose is for example you wish to block from 128.165.161.8 to 128.165.161.31
In that case, you can do this:
pass in log on lan0 from
128.165.161.0/29 to any
block in log on lan0 from
128.165.161.0/27 to any
pass in log on lan0 from any to any
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 07:36 AM
07-10-2002 07:36 AM
Re: IPFilter 9000 question on IP ranges
Thanks, that's the answer I was looking for.
Why can't we all get along?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP