Operating System - HP-UX
1753261 Members
4911 Online
108792 Solutions
New Discussion юеВ

Re: IPFilter strange behaviour

 
SOLVED
Go to solution
jreypo
Occasional Contributor

IPFilter strange behaviour

Hi guys. I'm setting up an IPFilter version 15 in a 11.31 host with the following ruleset:

---
# Block any incoming packet with IP options set
block in log quick all with ipopts

# Allow any connection initiated from the host
pass out quick proto icmp all keep state
pass out quick proto tcp all keep state
pass out quick proto udp all keep state

# Allow incoming connections from the data-protector cluster
pass in log quick on lan0 from dpphost01 to any
pass in log quick on lan0 from dpphost02 to any

# Block any other connection
block in all
---

But when I try to ssh from any other host than the DPP cluster the connection is stablished.

I check the kernel modules and they are loaded. The ipfstat -io command shows everything OK:

---
[root@artemisa] / # ipfstat -io
pass out quick proto icmp from any to any keep state
pass out quick proto tcp from any to any keep state
pass out quick proto udp from any to any keep state
block in log quick from any to any with ipopt
pass in log quick on lan0 from 10.31.4.75/32 to any
pass in log quick on lan0 from 10.31.4.76/32 to any
block in from any to any
[root@artemisa] / #
---

I have little experience with IPFilter so any comment would be welcome.

--
JMR
2 REPLIES 2
Fred K. Abell Jr._1
Regular Advisor
Solution

Re: IPFilter strange behaviour

Try this for a pass in filter for ssh.

#Allow SecureShell incoming connections
pass in quick on lan0 proto tcp from <> to any port = 22 flags S keep state keep frags

Works for me!
Fred
jreypo
Occasional Contributor

Re: IPFilter strange behaviour

Thx for the answer Fred. I tried to do as you said and it worked :-)

Rgrds,
---
JMR