Enterprise AV Home WiFi Mobile Wifi Support Shop Deals

This example shows how to set up one-way Web access using a TCP flag in an ACL. PC 1 can access FTP server 1 and FTP server 2, but PC 2 can access only FTP server 2.

Image

This is a two-step process:

  • Step 1: Configure the Switch
  • Step 2: Configure the GSM7352S
     

 

Step 1: Configure the Switch

 

 

  1. Create VLAN 30 with port 0/35 and assign IP address 192.168.30.1/24.

    (Netgear Switch) #vlan database
    (Netgear Switch) (Vlan)#vlan 30
    (Netgear Switch) (Vlan)#vlan routing 30
    (Netgear Switch) (Vlan)#exit
    (Netgear Switch) #config
    (Netgear Switch) (Config)#interface 0/35
    (Netgear Switch) (Interface 0/35)#vlan pvid 30
    (Netgear Switch) (Interface 0/35)#vlan participation include 30
    (Netgear Switch) (Interface 0/35)#exit
    (Netgear Switch) (Config)#interface vlan 30
    (Netgear Switch) (Interface-vlan 30)#routing
    (Netgear Switch) (Interface-vlan 30)#ip address 192.168.30.1 255.255.255.0
    (Netgear Switch) (Interface-vlan 30)#exit
    (Netgear Switch) (Config)#exit

     
  2. Create VLAN 100 with port 0/13 and assign IP address 192.168.100.1/24.

    (Netgear Switch) #vlan database
    (Netgear Switch) (Vlan)#vlan 100
    (Netgear Switch) (Vlan)#vlan routing 100
    (Netgear Switch) (Vlan)#exit
    (Netgear Switch) #configure
    (Netgear Switch) (Config)#interface 0/13
    (Netgear Switch) (Interface 0/13)#vlan pvid 100
    (Netgear Switch) (Interface 0/13)#vlan participation include 100
    (Netgear Switch) (Interface 0/13)#exit
    (Netgear Switch) (Config)#interface vlan 100
    (Netgear Switch) (Interface-vlan 100)#routing
    (Netgear Switch) (Interface-vlan 100)#ip address 192.168.100.1 255.255.255.0
    (Netgear Switch) (Interface-vlan 100)#exit
    (Netgear Switch) (Config)#exit

     
  3. Create VLAN 200 with port 0/44 and assign IP address 192.168.200.1/24.

    (Netgear Switch) #vlan database
    (Netgear Switch) (Vlan)#vlan 200
    (Netgear Switch) (Vlan)#vlan routing 200
    (Netgear Switch) (Vlan)#exit
    (Netgear Switch) #configure
    (Netgear Switch) (Config)#interface 0/44
    (Netgear Switch) (Interface 0/44)#vlan pvid 200
    (Netgear Switch) (Interface 0/44)#vlan participation include 200
    (Netgear Switch) (Interface 0/44)#exit
    (Netgear Switch) (Config)#interface vlan 200
    (Netgear Switch) (Interface-vlan 200)#routing
    (Netgear Switch) (Interface-vlan 200)#ip address 192.168.200.1 255.255.255.0
    (Netgear Switch) (Interface-vlan 200)#exit

     
  4. Add two static routes so that the switch forwards the packets for which the destinations are 192.168.40.0/24 and 192.168.50.0/24 to the correct next hops.

    (Netgear Switch) (Config)#ip routing
    (Netgear Switch) (Config)#ip route 192.168.40.0 255.255.255.0 192.168.200.2
    (Netgear Switch) (Config)#ip route 192.168.50.0 255.255.255.0 192.168.200.2

     
  5. Create an ACL that denies all the packets with TCP flags +syn-ack.

    (Netgear Switch) (Config)#access-list 101 deny tcp any flag +syn -ack
     
  6. Create an ACL that permits all the IP packets.

    (Netgear Switch) (Config)#access-list 102 permit ip any
     
  7. Apply ACLs 101 and 102 to port 0/44; the sequence of 101 is 1 and of 102 is 2.
     

 

 

Step 2: Configure the GSM7352S

 

 

  1. Enter the following commands.

    (Netgear Switch) (Config)#interface 0/44
    (Netgear Switch) (Interface 0/44)#ip access-group 101 in 1
    (Netgear Switch) (Interface 0/44)#ip access-group 102 in 2
    (Netgear Switch) (Interface 0/44)#exit

     
  2. Create VLAN 40 with port 1/0/24 and assign IP address 192.168.40.1/24.

    (Netgear Switch) #vlan database
    (Netgear Switch) (Vlan)#vlan 40
    (Netgear Switch) (Vlan)#vlan routing 40
    (Netgear Switch) #configure
    (Netgear Switch) (Config)#interface 1/0/24
    (Netgear Switch) (Interface 1/0/24)#vlan pvid 40
    (Netgear Switch) (Interface 1/0/24)#vlan participation include 40
    (Netgear Switch) (Interface 1/0/24)#exit
    (Netgear Switch) (Config)#interface vlan 40
    (Netgear Switch) (Interface-vlan 40)#routing
    (Netgear Switch) (Interface-vlan 40)#ip address 192.168.40.1 255.255.255.0
    (Netgear Switch) (Interface-vlan 40)#exit

     
  3. Create VLAN 50 with port 1/0/25 and assign IP address 192.168.50.1/24.

    (Netgear Switch)(Config)#exit
    (Netgear Switch) #vlan database
    (Netgear Switch) (Vlan)#vlan 50
    (Netgear Switch) (Vlan)#vlan routing 50
    (Netgear Switch) (Vlan)#exit
    (Netgear Switch) #configure
    (Netgear Switch) (Config)#interface 1/0/25
    (Netgear Switch) (Interface 1/0/25)#vlan pvid 50
    (Netgear Switch) (Interface 1/0/25)#vlan participation include 50
    (Netgear Switch) (Interface 1/0/25)#exit
    (Netgear Switch) (Config)#interface vlan 50
    (Netgear Switch) (Interface-vlan 50)#routing
    (Netgear Switch) (Interface-vlan 50)#ip address 192.168.50.1 255.255.255.0
    (Netgear Switch) (Interface-vlan 50)#exit
    (Netgear Switch) (Config)#exit

     
  4. Create VLAN 200 with port 1/0/48 and assign IP address 192.168.200.1/24.

    (Netgear Switch) #vlan database
    (Netgear Switch) (Vlan)#vlan 200
    (Netgear Switch) (Vlan)#vlan routing 200
    (Netgear Switch) (Config)#interface 1/0/48
    (Netgear Switch) (Interface 1/0/48)#vlan pvid 200
    (Netgear Switch) (Interface 1/0/48)#vlan participation include 200
    (Netgear Switch) (Interface 1/0/48)#exit
    (Netgear Switch) #interface vlan 200
    (Netgear Switch) (Interface-vlan 200)#routing
    (Netgear Switch) (Interface-vlan 200)#ip address 192.168.200.2 255.255.255.0
    (Netgear Switch) (Interface-vlan 200)#exit

     
  5. Add two static routes so that the switch forwards the packets with destinations 192.168.100.0/24 and 192.168.30.0/24 to the correct next hops.

    (Netgear Switch) (Config)#ip routing
    (Netgear Switch) (Config)#ip route 192.168.100.0 255.255.255.0 192.168.200.1
    (Netgear Switch) (Config)#ip route 192.168.30.0 255.255.255.0 192.168.200.1

 


For more information, see the following support articles:

 

 

This article applies to the following managed switches and their respective firmware:

 

 

  • M5300 - firmware version 10.0.0.x
    • M5300-28G (GSM7228S)
    • M5300-5G (GSM7252S)
    • M5300-28G3 (GSM7328Sv2h2)
    • M5300-52G3 (GSM7352Sv2h2)
    • M5300-28G_POE+ (GSM7228PSv1h2)
    • M5300-52G-POE+ (GSM7252PSv1h2)
    • M5300-28GF3 (GSM7328FSv2)
  • M4100 - firmware version 10.0.1.x
    • M4100-26G (GSM7224v2h2)
    • M4100-50G (GSM7248v2h2)
    • M4100-26G-POE (GSM7226Pv1h1)
    • M4100-50G-POE+ (GSM7248Pv1h1)
    • M4100-26G-POE (FSM7226Pv1h1)
    • M4100-50-POE (FSM7250Pv1h1)
    • M4100-D12G (GSM5212v1h1)
    • M4100-D10-POE (FSM5210Pv1h1)
  • M7100 - firmware version 10.0.1.x
    • M7100-24X (XSM7224)
  • XSM7224S - firmware version 9.0.1.x
Last Updated:07/07/2025 | Article ID: 21716

Our team is here to help!

Phone
Chat
Email