Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

Strange behavior with vlan

9acca9
Occasional Visitor

Strange behavior with vlan

Hi, i have a hp 5130, and i really dont know whats going on...

the problem is this: 

i have, for example, the port g1/0/1 access vlan 2 but... if i connect a host there, and give the ip 192.168.3.5 (another of my subnets... i can go to any where... why it's that...? and vice versa......

This is a little from my config.

interface Vlan-interface2
ip address 192.168.2.1 255.255.255.0
packet-filter 3002 outbound
#
interface GigabitEthernet1/0/5
port access vlan 2
#
interface GigabitEthernet1/0/6
port access vlan 2

 

interface Vlan-interface3
ip address 192.168.3.1 255.255.255.0
packet-filter 3003 outbound
#
interface GigabitEthernet1/0/7
port access vlan 3
#
interface GigabitEthernet1/0/8
port access vlan 3

acl number 3002 name vl2-PC
rule 10 permit tcp destination 192.168.2.0 0.0.0.255 established
rule 20 permit tcp source 192.168.1.253 0 destination 192.168.2.0 0.0.0.255 syn 1
rule 30 permit tcp source 192.168.2.0 0.0.0.255 destination 192.168.2.0 0.0.0.255 syn 1
rule 50 deny tcp destination 192.168.2.0 0.0.0.255 syn 1
rule 99 permit ip

 

#
acl number 3003 name vl5
rule 10 permit tcp destination 192.168.3.0 0.0.0.255 established
rule 20 permit tcp source 192.168.1.253 0 destination 192.168.5.0 0.0.0.255 syn 1
rule 30 permit tcp source 192.168.3.0 0.0.0.255 destination 192.168.5.0 0.0.0.255 syn 1
rule 50 deny tcp destination 192.168.3.0 0.0.0.255 syn 1
rule 99 permit ip

where is the problem??

if i undo rule 99 i this problem dosent happend but i loose access to internet to.

 

Thanks to all (and sorry for my english)

1 REPLY
luckyh
Advisor

Re: Strange behavior with vlan

So you already have discoverd your problem by yourself, your packet with source.ip 192.168.3.5 passes thru rule 99

rule 99 permit ip 

so instead of an any to any you would need a rule for source (subnet 192.168.2.0/24) only before you hit the implicit deny