Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP filtering in AIX

Status
Not open for further replies.

w5000

Technical User
Nov 24, 2010
223
0
0
PL

hello
anyone could explain why DENY rule does not work in my configuration. For test I wanted to grant ssh (22) for local and one remote host only.

I enabled "IPsec" devices in AIX:

mkdev -c ipsec -t 4
mkfilt -v 4 -u -z p

# lsdev -l ipsec_v4
ipsec_v4 Available IP Version 4 Security Extension

next added filter rules and activated firewall by:
# mkfilt -v4 -u

but this local AIX firewall is still allowing to access port 22/ssh from other than 192.168.3.4 remote hosts.
here is the check and sequence for rules applied:

# ckfilt -v4 -O
Beginning of IPv4 filter rules.
2|*** Dynamic filter placement rule for IKE tunnels ***|no
3|permit|127.0.0.1|0.0.0.0|0.0.0.0|0.0.0.0|yes|tcp|any|0|eq|22|both|inbound|no|all packets|0|all|0|||
4|permit|192.168.3.4|255.255.255.255|0.0.0.0|0.0.0.0|yes|tcp|any|0|eq|22|both|inbound|no|all packets|0|all|0|||
5|deny|0.0.0.0|0.0.0.0|0.0.0.0|0.0.0.0|yes|tcp|any|0|eq|22|both|inbound|no|all packets|0|all|0|||

Am I missing something?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top