Screen OS

last person joined: 8 months ago 

This is a legacy community with limited Juniper monitoring.
  • 1.  SSG5 internet not working

    Posted 09-12-2010 01:32

    As the title explains I have a SSG 5 up and running but no internet access from my clients.
    I see that the SSG5 has connected to my ISP cause i see my fixed ip but i cannot access internet.
    I'm kinda desperate so i posted the config file and maybe you guys here can help me out.
    there should also be an extra policy to route my mail traffic to my server, if you guys could check this one out

    Many thanks upfront

    config file: 

     

    set clock timezone 0
    set vrouter trust-vr sharable
    set vrouter "untrust-vr"
    exit
    set vrouter "trust-vr"
    unset auto-route-export
    exit
    set alg appleichat enable
    unset alg appleichat re-assembly enable
    set alg sctp enable
    set auth-server "Local" id 0
    set auth-server "Local" server-name "Local"
    set auth default auth server "Local"
    set auth radius accounting port 1646
    set admin name "netscreen"
    set admin password "nKVUM2rwMUzPcrkG5sWIHdCtqkAibn"
    set admin port 8900
    set admin auth web timeout 10
    set admin auth dial-in timeout 3
    set admin auth server "Local"
    set admin format dos
    set zone "Trust" vrouter "trust-vr"
    set zone "Untrust" vrouter "trust-vr"
    set zone "DMZ" vrouter "trust-vr"
    set zone "VLAN" vrouter "trust-vr"
    set zone "Untrust-Tun" vrouter "trust-vr"
    set zone "Trust" tcp-rst
    set zone "Untrust" block
    unset zone "Untrust" tcp-rst
    set zone "MGT" block
    set zone "DMZ" tcp-rst
    set zone "VLAN" block
    unset zone "VLAN" tcp-rst
    set zone "Untrust" screen tear-drop
    set zone "Untrust" screen syn-flood
    set zone "Untrust" screen ping-death
    set zone "Untrust" screen ip-filter-src
    set zone "Untrust" screen land
    set zone "V1-Untrust" screen tear-drop
    set zone "V1-Untrust" screen syn-flood
    set zone "V1-Untrust" screen ping-death
    set zone "V1-Untrust" screen ip-filter-src
    set zone "V1-Untrust" screen land
    set interface "ethernet0/0" zone "Untrust"
    set interface "ethernet0/1" zone "DMZ"
    set interface "bgroup0" zone "Trust"
    set interface bgroup0 port ethernet0/2
    set interface bgroup0 port ethernet0/3
    set interface bgroup0 port ethernet0/4
    set interface bgroup0 port ethernet0/5
    set interface bgroup0 port ethernet0/6
    unset interface vlan1 ip
    set interface ethernet0/0 ip 172.23.0.24/23
    set interface ethernet0/0 route
    set interface bgroup0 ip 192.168.1.254/24
    set interface bgroup0 route
    unset interface vlan1 bypass-others-ipsec
    unset interface vlan1 bypass-non-ip
    set interface ethernet0/0 ip manageable
    set interface bgroup0 ip manageable
    set interface ethernet0/0 manage ping
    set interface ethernet0/0 manage web
    set interface bgroup0 manage mtrace
    set interface ethernet0/0 dhcp client enable
    set interface ethernet0/1 dhcp client enable
    set interface bgroup0 dhcp server service
    set interface bgroup0 dhcp server auto
    set interface bgroup0 dhcp server option gateway 192.168.1.254
    set interface bgroup0 dhcp server option domainname telenet.be
    set interface bgroup0 dhcp server option dns1 195.130.132.107
    set interface bgroup0 dhcp server option dns2 195.130.137.10
    set interface bgroup0 dhcp server ip 192.168.1.180 to 192.168.1.199
    unset interface bgroup0 dhcp server config next-server-ip
    set interface "serial0/0" modem settings "USR" init "AT&F"
    set interface "serial0/0" modem settings "USR" active
    set interface "serial0/0" modem speed 115200
    set interface "serial0/0" modem retry 3
    set interface "serial0/0" modem interval 10
    set interface "serial0/0" modem idle-time 10
    set flow tcp-mss
    unset flow tcp-syn-check
    unset flow tcp-syn-bit-check
    set flow reverse-route clear-text prefer
    set flow reverse-route tunnel always
    set domain telenet.be
    set pki authority default scep mode "auto"
    set pki x509 default cert-path partial
    set dns host dns1 195.130.130.130 src-interface ethernet0/0
    set dns host dns2 195.130.130.131 src-interface ethernet0/0
    set dns host dns3 0.0.0.0
    set address "Trust" "LAN_192.168.1.0/24" 192.168.1.0 255.255.255.0
    set ike respond-bad-spi 1
    set ike ikev2 ike-sa-soft-lifetime 60
    unset ike ikeid-enumeration
    unset ike dos-protection
    unset ipsec access-session enable
    set ipsec access-session maximum 5000
    set ipsec access-session upper-threshold 0
    set ipsec access-session lower-threshold 0
    set ipsec access-session dead-p2-sa-timeout 0
    unset ipsec access-session log-error
    unset ipsec access-session info-exch-connected
    unset ipsec access-session use-error-log
    set vrouter "untrust-vr"
    exit
    set vrouter "trust-vr"
    exit
    set url protocol websense
    exit
    set policy id 1 from "Trust" to "Untrust"  "LAN_192.168.1.0/24" "Any" "ANY" nat src permit log
    set policy id 1
    exit
    set policy id 2 from "Untrust" to "Trust"  "Any" "VIP(ethernet0/0)" "MAIL" permit log
    set policy id 2
    exit
    set nsmgmt bulkcli reboot-timeout 60
    set ssh version v2
    set config lock timeout 5
    unset license-key auto-update
    set snmp port listen 161
    set snmp port trap 162
    set vrouter "untrust-vr"
    exit
    set vrouter "trust-vr"
    set add-default-route vrouter "untrust-vr"
    exit
    set vrouter "untrust-vr"
    exit
    set vrouter "trust-vr"
    exit



  • 2.  RE: SSG5 internet not working
    Best Answer

    Posted 09-12-2010 04:35

    I can see that you don,t have a default route pointing to the internet

     

    set route 0.0.0.0/0 interface ethernetX/X gateway Y.Y.Y.Y

     eX/X: Interface connected to the ISP

    Y.Y.Y.Y: Ip of the ISP  router connected to the firewall  ( your next hop )

     

    Also I can see that you are doing source natting using the inteface e0/0 ip which is not a real IP ( 172.23.0.24/23)

     

    *******************  Mark My Post as Accepted if it solved your problem*******************

     



  • 3.  RE: SSG5 internet not working

    Posted 09-12-2010 08:10

    now i managed to get on the internet before i applied your solution whti the config i posted.

    but now i'm having a different problem.  i can only connect to my ssg5 with dchp, cause when i need to fill in the dns i don't know what to fill in. and it gets lost cause the dns isn't responding.

    now the case is that my ssg5 is connected to my cable modem which is getting an static ip from my isp.

    i've connected my ssg5 to my cable modem.  to my ssg5 there's a windows Server2008 which need to give a static ip for dns server purposes. that's whare i get lost.

     

    so the internet thing has become a partially solved problem, i can connect but only through dhcp.

     

    perhaps something isn't right with the DNS settings.

     

    any ideas?