Solved

netscreen ns5gt (lan 10.0.0.0) behind thomson (lan 192.168.1.0) - how to setup smb to 192.168.1.80.

Posted on 2010-09-14
11
1,016 Views
Last Modified: 2012-05-10
HI,

I have a modem (thomson, lan 192.168.1.254) which has e synology connected to it (192.168.1.80) and a paasthru to a connected netscreen ns5gt, for vpn access.

what i want is to gain smb acces to the synology thru a vpn tunnel (all setup and working fine)
i have not done this before, so i was thinking to make a mib on the untrust side 10.0.0.252 / 192.168.1.80. tried it doesn't work or show up at the logs, so thats probably a stupid thought.

thanks
0
Comment
Question by:luciendejong
  • 6
  • 5
11 Comments
 
LVL 18

Expert Comment

by:Sanga Collins
Comment Utility
if the vpn is setup and working fine you just need a policy that allows the SMB port incoming on the VPN tunnel
0
 

Author Comment

by:luciendejong
Comment Utility
mm, but don't know how that would be setup, any idea on a netscreen ns5gt?
0
 
LVL 18

Expert Comment

by:Sanga Collins
Comment Utility
if you post your sanitized netscreen config file, i can tell you what needs to be modified so that this will work for you
0
 

Author Comment

by:luciendejong
Comment Utility
set clock timezone 0
set vrouter trust-vr sharable
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset auto-route-export
exit
set service "NAS-SYNOLOGY" protocol tcp src-port 7000-7001 dst-port 7000-7001
set service "NAS-SYNOLOGY" + tcp src-port 1080-1080 dst-port 1080-1080
set service "NAS-SYNOLOGY" + tcp src-port 5000-5001 dst-port 5000-5001
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 "nLokBVrlHfjLccXBoslN8IAtvOFHEn"
set admin port 4480
set admin auth timeout 10
set admin auth server "Local"
set admin format dos
set zone "Trust" vrouter "trust-vr"
set zone "Untrust" 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 "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 "trust" zone "Trust"
set interface "untrust" zone "Untrust"
unset interface vlan1 ip
set interface trust ip 10.0.0.254/24
set interface trust nat
set interface untrust ip 192.168.1.74/24
set interface untrust route
set interface "untrust" pmtu ipv4
unset interface vlan1 bypass-others-ipsec
unset interface vlan1 bypass-non-ip
set interface trust ip manageable
set interface untrust ip manageable
set interface trust manage mtrace
set interface untrust manage ping
set interface untrust manage ssh
set interface untrust manage telnet
set interface untrust manage snmp
set interface untrust manage ssl
set interface untrust manage web
set interface untrust dhcp client enable
set interface trust dhcp server service
set interface trust dhcp server auto
set interface trust dhcp server option domainname lan
set interface trust dhcp server option dns1 192.168.1.254
unset interface trust dhcp server config next-server-ip
set interface "untrust" mip 10.0.0.252 host 192.168.1.80 netmask 255.255.255.0 vr "untrust-vr"
set flow tcp-mss
unset flow tcp-syn-check
set domain lan

set pki authority default scep mode "auto"
set pki x509 default cert-path partial
set address "Trust" "lan" 10.0.0.0 255.255.255.0
set address "Trust" "syn" 10.0.0.2 255.255.255.255
set address "Untrust" "synology" 10.0.0.2 255.255.255.0
set user "beheer@slk.nl" uid 1
set user "beheer@slk.nl" ike-id u-fqdn "beheer@slk.nl" share-limit 1
set user "beheer@slk.nl" type  ike
set user "beheer@slk.nl" "enable"
set user "info@hospitalitist.nl" uid 4
set user "info@hospitalitist.nl" ike-id u-fqdn "info@hospitalitist.nl" share-limit 1
set user "info@hospitalitist.nl" type  ike
set user "info@hospitalitist.nl" "enable"
set user "user1@hospitalitist.nl" uid 5
set user "user1@hospitalitist.nl" ike-id u-fqdn "user1@hospitalitist.nl" share-limit 1
set user "user1@hospitalitist.nl" type  ike
set user "user1@hospitalitist.nl" "enable"
set user "user2@hospitalitist.nl" uid 6
set user "user2@hospitalitist.nl" ike-id u-fqdn "user2@hospitalitist.nl" share-limit 1
set user "user2@hospitalitist.nl" type  ike
set user "user2@hospitalitist.nl" "enable"
set ike gateway "gw-hosp2" dialup "user2@hospitalitist.nl" Aggr outgoing-interface "untrust" preshare "" proposal "pre-g2-aes128-sha"
set ike gateway "gw-hosp2" nat-traversal udp-checksum
set ike gateway "gw-hosp2" nat-traversal keepalive-frequency 5
set ike gateway "gw-hosp1" dialup "user1@hospitalitist.nl" Main outgoing-interface "untrust" preshare "" proposal "pre-g2-aes128-sha"
set ike gateway "gw-hosp1" nat-traversal udp-checksum
set ike gateway "gw-hosp1" nat-traversal keepalive-frequency 5
set ike gateway "gw-hosp" dialup "info@hospitalitist.nl" Main outgoing-interface "untrust" preshare "" proposal "pre-g2-aes128-sha"
set ike gateway "gw-hosp" nat-traversal udp-checksum
set ike gateway "gw-hosp" nat-traversal keepalive-frequency 5
set ike respond-bad-spi 1
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 vpn "vpn-hosp2" gateway "gw-hosp2" replay tunnel idletime 0 proposal "nopfs-esp-aes128-sha"  "nopfs-esp-des-md5"  "nopfs-esp-3des-sha"  "nopfs-esp-3des-md5"
set vpn "vpn-hosp2" monitor
set vpn "vpn-hosp2" bind zone Untrust-Tun
set vpn "vpn-hosp1" gateway "gw-hosp1" replay tunnel idletime 0 proposal "nopfs-esp-aes128-sha"  "nopfs-esp-des-md5"  "nopfs-esp-3des-sha"  "nopfs-esp-3des-md5"
set vpn "vpn-hosp1" monitor rekey
set vpn "vpn-hosp1" bind zone Untrust-Tun
set vpn "vpn-hosp" gateway "gw-hosp" replay tunnel idletime 0 proposal "nopfs-esp-aes128-sha"  "nopfs-esp-des-md5"  "nopfs-esp-3des-sha"  "nopfs-esp-3des-md5"
set vpn "vpn-hosp" monitor rekey
set av profile "scan-mgr"
set ftp scan-mode  scan-all  
set ftp decompress-layer  2  
set http scan-mode  scan-all  
set imap scan-mode  scan-all  
set imap decompress-layer  2  
set pop3 scan-mode  scan-all  
set pop3 decompress-layer  2  
set smtp scan-mode  scan-all  
set smtp decompress-layer  2  
exit
set url protocol websense
exit
set anti-spam profile ns-profile
 set sbl default-server enable
exit
set policy id 1 from "Trust" to "Untrust"  "Any" "Any" "ANY" permit
set policy id 1
exit
set policy id 2 from "Untrust" to "Trust"  "Dial-Up VPN" "lan" "ANY" tunnel vpn "vpn-hosp2" id 8 log
set policy id 2
exit
set policy id 3 from "Untrust" to "Trust"  "Dial-Up VPN" "lan" "ANY" tunnel vpn "vpn-hosp1" id 3 log
set policy id 3
exit
set policy id 4 from "Untrust" to "Trust"  "Dial-Up VPN" "lan" "ANY" tunnel vpn "vpn-hosp" id 9 log
set policy id 4
exit
set nsmgmt bulkcli reboot-timeout 60
set ssh version v2
set config lock timeout 5
set modem speed 115200
set modem retry 3
set modem interval 10
set modem idle-time 10
set snmp port listen 161
set snmp port trap 162
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset add-default-route
exit
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
exit

thanks, have a nice day!!!
0
 
LVL 18

Expert Comment

by:Sanga Collins
Comment Utility
Your network is very unconventional. let me see if i understand how this is truly setup

you have the juniper untrust 192.16.1.74/24 conected to a modem
also plugged into this modem is your NAS device 192.168.1.80

on the trust side of the juniper you have the network 10.0.0.254/24 what is this network for?

you also have a MIP thats going from trust 10.0.0.252 to 192.168.1.80 (which is actually backwards)


Please let me know if i am correct in what i described or way off.

In my mind this should be setup as such: Modem ---> juniper ----> lan with NAS and other devices
then users can VPN ---> juniper ----> access to NAS devices with relevant security policy (no MIP required)
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:luciendejong
Comment Utility
true, and you fully understand correct. forget about the mib, doesn't work and is deleted (sorry i have send). your right about the placement of the nas, As is implemented the the hardware i had some trouble forwarding the synology ports, and was out of time, so i connected the nas to the modem, so at least thoose functions work. So unconventional yes.

10.0.0.0 network is the lan with workstations and printers attached.

further  i am not at the location, only access is thru the tunnel to the netscreen. from there i need acces to 192.168.1.254 (for modem access) and i need to access the synology from the tunnel.
If its not possible or almost impossible, just let me know, i will visit the location again.

kind regards,
lucien
0
 
LVL 18

Expert Comment

by:Sanga Collins
Comment Utility
ok then its looks like you are missing routes on the juniper. if users on the VPn can ping the lan which is 10.0.0.254/24, can they also ping the wan 192.168.1.74/24?

also if you do a get route command from a console session, please post the routing table for me


thanks
0
 

Author Comment

by:luciendejong
Comment Utility
can ping 10,0.0.254 not 192.168.1.74. li can ping both from a computer located there, but not from the tunnel .AT this time the netscreen is down, i ques the cleaner needed power (this a new company, nothing there)

thanks for now will be back tomorrow
cheers
lucien
0
 
LVL 18

Accepted Solution

by:
Sanga Collins earned 500 total points
Comment Utility
ok, please post route table when you get a chance ... we will be here when you get back
0
 

Author Closing Comment

by:luciendejong
Comment Utility
thanks a lot
0
 
LVL 18

Expert Comment

by:Sanga Collins
Comment Utility
Did the routes solve the issue?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Imagine you have a shopping list of items you need to get at the grocery store. You have two options: A. Take one trip to the grocery store and get everything you need for the week, or B. Take multiple trips, buying an item at a time, to achieve t…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now