Код:
#-------------------------------------------------------------------
# DES-3028 Configuration
#
# Firmware: Build 2.30.B08
# Copyright(C) 2008 D-Link Corporation. All rights reserved.
#-------------------------------------------------------------------
# BASIC
config serial_port baud_rate 9600 auto_logout 10_minutes
# ACCOUNT LIST
create account admin admin
Kendalf9
Kendalf9
# ACCOUNT END
# PASSWORD ENCRYPTION
disable password encryption
config terminal_line default
enable clipaging
disable command logging
# STORM
config traffic trap none
config traffic control 1-28 broadcast disable multicast disable unicast disable action drop threshold 64 countdown 0 time_interval 5
# LOOP_DETECT
disable loopdetect
config loopdetect recover_timer 60
config loopdetect interval 10
config loopdetect port 1-28 state disabled
# QOS
config scheduling_mechanism strict
config scheduling 0 weight 1
config scheduling 1 weight 2
config scheduling 2 weight 4
config scheduling 3 weight 8
config 802.1p user_priority 0 1
config 802.1p user_priority 1 0
config 802.1p user_priority 2 0
config 802.1p user_priority 3 1
config 802.1p user_priority 4 2
config 802.1p user_priority 5 2
config 802.1p user_priority 6 3
config 802.1p user_priority 7 3
config cos tos value 0 class 0
config cos tos value 1 class 0
config cos tos value 2 class 0
config cos tos value 3 class 0
config cos tos value 4 class 0
config cos tos value 5 class 0
config cos tos value 6 class 0
config cos tos value 7 class 0
config dscp_mapping dscp_value 0 class 0
config dscp_mapping dscp_value 1 class 0
config dscp_mapping dscp_value 2 class 0
config dscp_mapping dscp_value 3 class 0
config dscp_mapping dscp_value 4 class 0
config dscp_mapping dscp_value 5 class 0
config dscp_mapping dscp_value 6 class 0
config dscp_mapping dscp_value 7 class 0
config dscp_mapping dscp_value 8 class 0
config dscp_mapping dscp_value 9 class 0
config dscp_mapping dscp_value 10 class 0
config dscp_mapping dscp_value 11 class 0
config dscp_mapping dscp_value 12 class 0
config dscp_mapping dscp_value 13 class 0
config dscp_mapping dscp_value 14 class 0
config dscp_mapping dscp_value 15 class 0
config dscp_mapping dscp_value 16 class 0
config dscp_mapping dscp_value 17 class 0
config dscp_mapping dscp_value 18 class 0
config dscp_mapping dscp_value 19 class 0
config dscp_mapping dscp_value 20 class 0
config dscp_mapping dscp_value 21 class 0
config dscp_mapping dscp_value 22 class 0
config dscp_mapping dscp_value 23 class 0
config dscp_mapping dscp_value 24 class 0
config dscp_mapping dscp_value 25 class 0
config dscp_mapping dscp_value 26 class 0
config dscp_mapping dscp_value 27 class 0
config dscp_mapping dscp_value 28 class 0
config dscp_mapping dscp_value 29 class 0
config dscp_mapping dscp_value 30 class 0
config dscp_mapping dscp_value 31 class 0
config dscp_mapping dscp_value 32 class 0
config dscp_mapping dscp_value 33 class 0
config dscp_mapping dscp_value 34 class 0
config dscp_mapping dscp_value 35 class 0
config dscp_mapping dscp_value 36 class 0
config dscp_mapping dscp_value 37 class 0
config dscp_mapping dscp_value 38 class 0
config dscp_mapping dscp_value 39 class 0
config dscp_mapping dscp_value 40 class 0
config dscp_mapping dscp_value 41 class 0
config dscp_mapping dscp_value 42 class 0
config dscp_mapping dscp_value 43 class 0
config dscp_mapping dscp_value 44 class 0
config dscp_mapping dscp_value 45 class 0
config dscp_mapping dscp_value 46 class 0
config dscp_mapping dscp_value 47 class 0
config dscp_mapping dscp_value 48 class 0
config dscp_mapping dscp_value 49 class 0
config dscp_mapping dscp_value 50 class 0
config dscp_mapping dscp_value 51 class 0
config dscp_mapping dscp_value 52 class 0
config dscp_mapping dscp_value 53 class 0
config dscp_mapping dscp_value 54 class 0
config dscp_mapping dscp_value 55 class 0
config dscp_mapping dscp_value 56 class 0
config dscp_mapping dscp_value 57 class 0
config dscp_mapping dscp_value 58 class 0
config dscp_mapping dscp_value 59 class 0
config dscp_mapping dscp_value 60 class 0
config dscp_mapping dscp_value 61 class 0
config dscp_mapping dscp_value 62 class 0
config dscp_mapping dscp_value 63 class 0
config 802.1p default_priority 1-28 0
config cos mapping port 1-28 ethernet 802.1p
# MIRROR
disable mirror
config mirror port 1 delete source ports 1 both
# BANDWIDTH
config bandwidth_control 1-28 rx_rate no_limit tx_rate no_limit
# SYSLOG
disable syslog
config log_save_timing on_demand
# TRAF-SEGMENTATION
config traffic_segmentation 1-28 forward_list 1-28
# PACKET_FROM_CPU
config mgmt_pkt_priority default
# SSL
disable ssl
enable ssl ciphersuite RSA_with_RC4_128_MD5
enable ssl ciphersuite RSA_with_3DES_EDE_CBC_SHA
enable ssl ciphersuite DHE_DSS_with_3DES_EDE_CBC_SHA
enable ssl ciphersuite RSA_EXPORT_with_RC4_40_MD5
config ssl cachetimeout 600
# PORT
config ports 1-28 speed auto flow_control disable state enable clear_description
config ports 1-28 learning enable
config ports 1-28 mdix auto
config ports 25-26 medium_type fiber speed auto flow_control disable state enable clear_description
config ports 25-26 medium_type fiber learning enable
# TIME_RANGE
# GM
config sim candidate
disable sim
config sim dp_interval 30
config sim hold_time 100
# MANAGEMENT
create trusted_host 10.22.1.1
create trusted_host 93.100.224.1
create trusted_host 10.22.0.2
enable snmp traps
enable snmp authenticate traps
enable snmp linkchange_traps
config snmp linkchange_traps ports all enable
config snmp coldstart_traps enable
config snmp warmstart_traps enable
disable rmon
# SNMPv3
delete snmp community public
delete snmp community private
delete snmp user initial
delete snmp group initial
delete snmp view restricted all
delete snmp view CommunityView all
delete snmp group public
delete snmp group private
delete snmp group ReadGroup
delete snmp group WriteGroup
config snmp engineID 800000ab03001e58a822a5
create snmp view restricted 1.3.6.1.2.1.1 view_type included
create snmp view restricted 1.3.6.1.2.1.11 view_type included
create snmp view restricted 1.3.6.1.6.3.10.2.1 view_type included
create snmp view restricted 1.3.6.1.6.3.11.2.1 view_type included
create snmp view restricted 1.3.6.1.6.3.15.1.1 view_type included
create snmp view CommunityView 1 view_type included
create snmp view CommunityView 1.3.6.1.6.3 view_type excluded
create snmp view CommunityView 1.3.6.1.6.3.1 view_type included
create snmp group public v1 read_view CommunityView notify_view CommunityView
create snmp group public v2c read_view CommunityView notify_view CommunityView
create snmp group initial v3 noauth_nopriv read_view restricted notify_view restricted
create snmp group private v1 read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group private v2c read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group ReadGroup v1 read_view CommunityView notify_view CommunityView
create snmp group ReadGroup v2c read_view CommunityView notify_view CommunityView
create snmp group WriteGroup v1 read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group WriteGroup v2c read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp community private view CommunityView read_write
create snmp community public view CommunityView read_only
create snmp user initial initial
# VLAN
disable asymmetric_vlan
disable qinq
config vlan default delete 1-28
config vlan default add untagged 25-28
config vlan default advertisement enable
create vlan vlan5 tag 5
config vlan vlan5 add tagged 25-28
config vlan vlan5 add untagged 1-18,20-24
create vlan vlan17 tag 17
config vlan vlan17 add tagged 25-28
config vlan vlan17 add untagged 19
disable gvrp
config gvrp 1-18,20-24 state disable ingress_checking enable acceptable_frame admit_all pvid 5
config gvrp 19 state disable ingress_checking enable acceptable_frame admit_all pvid 17
config gvrp 25-28 state disable ingress_checking enable acceptable_frame admit_all pvid 1
# 8021X
disable 802.1x
config 802.1x auth_protocol radius_eap
config radius parameter timeout 5 retransmit 2
config 802.1x capability ports 1-28 none
config 802.1x auth_parameter ports 1-28 direction both port_control auto quiet_period 60 tx_period 30 supp_timeout 30 server_timeout 30 max_req 2 reauth_period 3600 enable_reauth disable
# PORT_LOCK
disable port_security trap_log
config port_security ports 1-28 admin_state disable max_learning_addr 1 lock_address_mode DeleteOnTimeout
# PPPOE
config pppoe circuit_id_insertion state disable
config pppoe circuit_id_insertion ports 1-28 state enable circuit_id ip
# FDB
config fdb aging_time 300
config multicast port_filtering_mode all filter_unregistered_groups
config multicast port_filtering_mode 1-24 forward_unregistered_groups
# MAC_ADDRESS_TABLE_NOTIFICATION
config mac_notification interval 1 historysize 1
disable mac_notification
config mac_notification ports 1-28 disable
# STP
disable stp
config stp version rstp
config stp maxage 20 maxhops 20 forwarddelay 15 txholdcount 3 fbpdu enable hellotime 2 lbd enable lbd_recover_timer 60
config stp priority 32768 instance_id 0
config stp mst_config_id name 00:1E:58:A8:22:A5 revision_level 0
config stp trap new_root enable topo_change enable
config stp ports 1-28 externalCost auto edge false p2p auto state enable lbd disable
config stp mst_ports 1-28 instance_id 0 internalCost auto priority 128
config stp ports 1-28 fbpdu enable
config stp ports 1-28 restricted_role false
config stp ports 1-28 restricted_tcn false
# MULTI FILTER
config max_mcast_group port 1-28 max_group 256
# SAFEGUARD_ENGINE
config safeguard_engine state enable utilization rising 100 falling 20 trap_log disable mode fuzzy
# BANNER_PROMP
config command_prompt default
config greeting_message default
# SSH
config ssh algorithm 3DES enable
config ssh algorithm AES128 enable
config ssh algorithm AES192 enable
config ssh algorithm AES256 enable
config ssh algorithm arcfour enable
config ssh algorithm blowfish enable
config ssh algorithm cast128 enable
config ssh algorithm twofish128 enable
config ssh algorithm twofish192 enable
config ssh algorithm twofish256 enable
config ssh algorithm MD5 enable
config ssh algorithm SHA1 enable
config ssh algorithm RSA enable
config ssh algorithm DSA enable
config ssh authmode password enable
config ssh authmode publickey enable
config ssh authmode hostbased enable
config ssh server maxsession 8
config ssh server contimeout 120
config ssh server authfail 2
config ssh server rekey never
config ssh user admin authmode password
disable ssh
# SNOOP
enable igmp_snooping
config igmp_snooping data_driven_learning max_learned_entry 56
create igmp_snooping multicast_vlan tv 666
config igmp_snooping multicast_vlan tv state enable
config igmp_snooping multicast_vlan tv replace_source_ip 10.12.16.171
config igmp_snooping multicast_vlan tv add member_port 1-24
config igmp_snooping multicast_vlan tv add source_port 25-28
config igmp_snooping vlan_name default host_timeout 260 router_timeout 260 leave_timer 2 state enable fast_leave disable
config igmp_snooping data_driven_learning vlan_name default aged_out disable
config igmp_snooping querier all query_interval 125 max_response_time 10 robustness_variable 2 last_member_query_interval 1 state disable
config igmp_snooping vlan_name vlan5 host_timeout 260 router_timeout 260 leave_timer 2 state enable fast_leave disable
config igmp_snooping data_driven_learning vlan_name vlan5 aged_out disable
config igmp_snooping vlan_name vlan17 host_timeout 260 router_timeout 260 leave_timer 2 state enable fast_leave disable
config igmp_snooping data_driven_learning vlan_name vlan17 aged_out disable
config igmp_snooping vlan_name tv host_timeout 260 router_timeout 260 leave_timer 2 fast_leave disable
config igmp_snooping data_driven_learning vlan_name tv aged_out disable
config igmp access_authentication port 1-28 state disable
config cpu_filter l3_control_pkt 1-28 all state disable
# VLAN_TRUNK
disable vlan_trunk
# SMTP
disable smtp
# ACL
create access_profile packet_content offset_32-47 0x0 0x0 0xffff0000 0x0 profile_id 3
config access_profile profile_id 3 add access_id 1 packet_content offset 40 0x8b0000 port 25-28 deny
config access_profile profile_id 3 add access_id 2 packet_content offset 40 0x870000 port 25-28 deny
config access_profile profile_id 3 add access_id 3 packet_content offset 40 0x880000 port 25-28 deny
config access_profile profile_id 3 add access_id 4 packet_content offset 40 0x890000 port 25-28 deny
config access_profile profile_id 3 add access_id 5 packet_content offset 40 0x8a0000 port 25-28 deny
config access_profile profile_id 3 add access_id 6 packet_content offset 40 0x1710000 port 25-28 deny
config access_profile profile_id 3 add access_id 7 packet_content offset 40 0x1bd0000 port 25-28 deny
config access_profile profile_id 3 add access_id 8 packet_content offset 40 0x2510000 port 25-28 deny
create access_profile packet_content offset_32-47 0x0 0xffff0000 0x0 0x0 profile_id 4
config access_profile profile_id 4 add access_id 1 packet_content offset 36 0x8b0000 port 1-24 deny
config access_profile profile_id 4 add access_id 2 packet_content offset 36 0x870000 port 1-24 deny
config access_profile profile_id 4 add access_id 3 packet_content offset 36 0x880000 port 1-24 deny
config access_profile profile_id 4 add access_id 4 packet_content offset 36 0x890000 port 1-24 deny
config access_profile profile_id 4 add access_id 5 packet_content offset 36 0x8a0000 port 1-24 deny
config access_profile profile_id 4 add access_id 6 packet_content offset 36 0x1710000 port 1-24 deny
config access_profile profile_id 4 add access_id 7 packet_content offset 36 0x1bd0000 port 1-24 deny
config access_profile profile_id 4 add access_id 8 packet_content offset 36 0x2510000 port 1-24 deny
disable cpu_interface_filtering
# SNTP
disable sntp
config time_zone operator - hour 6 min 0
config sntp primary 0.0.0.0 secondary 0.0.0.0 poll-interval 720
config dst disable
# DOS_PREVENTION
disable dos_prevention trap_log
config dos_prevention dos_type land_attack action drop state enable
config dos_prevention dos_type blat_attack action drop state enable
config dos_prevention dos_type smurf_attack action drop state enable
config dos_prevention dos_type tcp_null_scan action drop state enable
config dos_prevention dos_type tcp_xmascan action drop state enable
config dos_prevention dos_type tcp_synfin action drop state enable
config dos_prevention dos_type tcp_syn_srcport_less_1024 action drop state disable
# LACP
config lacp_port 1-28 mode passive
config link_aggregation algorithm mac_source
# ERPS
config erps log disable
disable erps
# ADDRBIND
disable address_binding dhcp_snoop
disable address_binding trap_log
disable address_binding arp_inspection
config address_binding ip_mac ports 1-28 state disable allow_zeroip disable forward_dhcppkt enable
config address_binding ip_mac ports 1-28 mode arp stop_learning_threshold 500
config address_binding dhcp_snoop max_entry ports 1-28 limit 5
# ARPSPOOF
# IP
config ipif System vlan default ipaddress 10.22.240.5/16 state enable
config ipif System dhcp_option12 state disable
enable telnet 23
enable web 80
disable autoconfig
# LLDP
disable lldp
config lldp message_tx_interval 30
config lldp tx_delay 2
config lldp message_tx_hold_multiplier 4
config lldp reinit_delay 2
config lldp notification_interval 5
config lldp ports 1-28 notification disable
config lldp ports 1-28 admin_status tx_and_rx
# MLDSNP
# ARP
config arp_aging time 20
config gratuitous_arp send ipif_status_up enable
config gratuitous_arp send dup_ip_detected enable
config gratuitous_arp learning enable
# AAA
config authen_login default method local
config authen_enable default method local_enable
config authen application console login default
config authen application console enable default
config authen application telnet login default
config authen application telnet enable default
config authen application ssh login default
config authen application ssh enable default
config authen application http login default
config authen application http enable default
config authen parameter response_timeout 30
config authen parameter attempt 3
disable authen_policy
config admin local_enable
# DHCP_RELAY
disable dhcp_relay
config dhcp_relay hops 4 time 0
config dhcp_relay option_82 state disable
config dhcp_relay option_82 check disable
config dhcp_relay option_82 policy replace
config dhcp_relay option_82 remote_id default
# DHCP_LOCAL_RELAY
disable dhcp_local_relay
# FIRM
config configuration trap save disable upload disable download disable
# ROUTE
create iproute default 10.22.1.1 1
#-------------------------------------------------------------------
# End of configuration file for DES-3028
#-------------------------------------------------------------------