Skip to content

Instantly share code, notes, and snippets.

@mmm
Created May 6, 2014 22:58
Show Gist options
  • Save mmm/1c31c6a40f9e534d4bc8 to your computer and use it in GitHub Desktop.
Save mmm/1c31c6a40f9e534d4bc8 to your computer and use it in GitHub Desktop.
######### CREATE A SERVICE #################
configure
service
add “SMTPS_587_TCP”
ip-type 6
port-begin 587
port-end 587
end
finished
Exemplo de IP-TYPES
Please provide the ip-type parameter. Acceptable values are:/s
1(ICMP),
2(IGMP),
6,(TCP),
17(UDP)
47(GRE),
50(ESP),
51(AH),
88(EIGRP),
89(OSPF),
103(PIMSM),
115(L2TP).
######## CREATING SERVICE GROUPS ##################
configure
service-group
add <GROUP's NAME> # GROUP's NAME
service SMTPS_587_TCP # Service Object previously created
service SMTP
service FTP
end
############ CREATING OBJECT #################
configure
address-object “<OBJECT's NAME>”
host
zone LAN # Here you put the RIGHT Zone
end
########## CREATING Object's GROUP
configure
address-group “GRUP-TEST”
address-object “HOST-MAIL01″
address-object “HOST-MAIL02″
address-object “GROUP-SERVES”
address-object “HOST-NB-DIRECTOR”
end
########### CREATIONG NAT POLICIES
configure
nat
add
orig-src Any # ENTER for mor options
trans-src Original
orig-dst “WAN Primary IP” # Or an Object previously created
trans-dst WEB_SERVER_IIS
orig-svc HTTP
trans-svc Original
inbound-interface Any
outbound-interface Any
comment “NAT VIA CLI COMMAND”
info # With INFO you can see the configuration
end
finished
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment