This procedure connects the services gateway to the network but does not enable it to forward traffic. For complete information about enabling the services gateway to forward traffic, including examples, see the appropriate Junos OS configuration guides.
To configure the software:
root#cliroot#configure [edit]root@#[edit]root@# set system root-authentication plain-text-passwordNew password: passwordRetype new password: password [edit]root@# set system login user admin class super-user
authentication plain-text-passwordNew password: passwordRetype new password: password [edit]root@# commitconfigure [edit]admin@# set system host-name host-name[edit]admin@# set interfaces fxp0 unit 0 family inet
address address/prefix-length[edit]admin@# set interfaces ge-0/0/0 unit 0 family
inet address address/prefix-lengthadmin@# set interfaces ge-0/0/1 unit 0 family
inet address address/prefix-length[edit]admin@# set routing-options static route 0.0.0.0/0
next-hop gateway[edit]admin@# set security zones security-zone trust
interfaces ge-0/0/0admin@# set security zones security-zone untrust
interfaces ge-0/0/1[edit]admin@# set security policies from-zone trust
to-zone untrust policy policy-name match source-address
any destination-address any application any admin@# set security policies from-zone trust
to-zone untrust policy policy-name then permit[edit]admin@# commit checkconfiguration check succeeds[edit]admin@# commitcommit completeadmin@# show## Last changed: 2008-05-07 22:43:25 UTC
version "9.2I0 [builder]";
system {
autoinstallation;
host-name henbert;
root-authentication {
encrypted-password "$1$oTVn2KY3$uQe4xzQCxpR2j7sKuV.Pa0"; ## SECRET-DATA
}
login {
user admin {
uid 928;
class super-user;
authentication {
encrypted-password "$1$cdOPmACd$QvreBsJkNR1EF0uurTBkE."; ## SECRET-DATA
}
}
}
services {
ssh;
web-management {
http {
interface ge-0/0/0.0;
}
}
}
syslog {
user * {
any emergency;
}
file messages {
any any;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
license {
autoupdate {
url https://ae1.juniper.net/junos/key_retrieval;
}
}
}
interfaces {
ge-0/0/0 {
unit 0 {
family inet {
address 192.1.1.1/24;
}
}
}
ge-0/0/1 {
unit 0 {
family inet {
address 5.1.1.1/24;
}
}
}
fxp0 {
unit 0 {
family inet {
address 192.168.10.2/24;
}
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 5.1.1.2;
}
}
security {
zones {
security-zone trust {
interfaces {
ge-0/0/0.0;
}
}
security-zone untrust {
interfaces {
ge-0/0/1.0;
}
}
}
policies {
from-zone trust to-zone untrust {
policy bob {
match {
source-address any;
destination-address any;
application any;
}
then {
permit;
}
}
}
}
}[edit]admin@# commit[edit]admin@# commit[edit]admin@# exitadmin@#