Results 1 to 3 of 3

Thread: Assistance on setting up NAS device on a Debian firewall

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question Assistance on setting up NAS device on a Debian firewall

    Hi,

    I am totally new in Linux and I would like to ask your assistance on how to setup a NAS device behind a Debian firewall.

    Goal: Connect a NAS server on the internal network of a Linux firewall.

    Here is the setup:

    internet -- Linux firewall -- Dell 10/100 Switch -- NAS server

    Linux is running on Debian GNU/Linux 4.0
    NAS PowerVault NX300 is running on QNAP 3.3.6 Build 1110T

    Thanks so much.

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 804 Times in 511 Posts
    Rep Power
    10

    Default

    Do you want to share files on the Internet too? If not than just allow access from and within LAN. For example if NAS server (IP 192.168.1.100) and internal lan is part of 192.168.1.0/24:

    Code:
    Allow in/out all from 192.168.1.0/24 to 192.168.1.100
    The iptables rules will look as follows on firewall:
    Code:
    /sbin/iptables -A INPUT -s 192.168.1.0/24 -p all -d 192.168.1. 100 -m state --state NEW  -j ACCEPT
    If you could post your firewall script it will help us to suggest you exact rules.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  3. The Following User Says Thank You to nixcraft For This Useful Post:

    shy.newbie (28th November 2011)

  4. #3
    Junior Member
    Join Date
    Nov 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks for the reply and sorry for the late response, setting up another AD kept me occupied.

    Yes, this should only be allowed within LAN as the NAS will be accessed via VPN.

    If I understood this correctly, the only config needed on the firewall is to add the rule to allow access from and within LAN. I am guessing that since VPN allows entire LAN access to the client, I do not need to add another rule anymore, is that correct?

    I'll try the command you gave.

    Thanks again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. setting up secure ftp
    By leonel in forum Novell Suse / OpenSuse
    Replies: 2
    Last Post: 2nd October 2010, 11:19 AM
  2. Setting password
    By vamsi in forum Databases servers
    Replies: 1
    Last Post: 29th January 2010, 11:17 PM
  3. UNIX Shell Programming Assistance?
    By DamienCurr in forum Shell scripting
    Replies: 2
    Last Post: 26th November 2009, 10:40 PM
  4. Firewall for Debian?
    By cryingthug in forum Ubuntu / Debian
    Replies: 4
    Last Post: 5th October 2009, 08:18 AM
  5. DNS caching setting
    By garora in forum Domain Name Server
    Replies: 1
    Last Post: 24th March 2009, 08:02 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •