Comware Based
1753859 Members
7735 Online
108809 Solutions
New Discussion

Re: Strange behavior with vlan

 
9acca9
New Member

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 1
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