Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: NFS folders are no longr auto-mounting at boot up

  1. #11
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: NFS folders are no longr auto-mounting at boot up

    Looks normal to me.

    Why bother with ssh on the LAN when telnet is just like plain FTP?

  2. #12
    Join Date
    Nov 2006
    Location
    Vienna, Austria
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: NFS folders are no longr auto-mounting at boot up

    Quote Originally Posted by TheFu View Post
    Looks normal to me.

    Why bother with ssh on the LAN when telnet is just like plain FTP?
    I use ssh to terminal into the server.

    I recently had to enable plain ftp because my IP cam doesn't support any other protocol.
    Recommended Resources: Ubuntu Linux Resources

  3. #13
    Join Date
    Nov 2006
    Location
    Vienna, Austria
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: NFS folders are no longr auto-mounting at boot up

    Do I need to open any other ports for NFS? (Mind you this was working fine for months and months now, unless some requirements changed):

    Code:
    *filter
    
    # Allow all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0
    -A INPUT -i lo -j ACCEPT
    -A INPUT -d 127.0.0.0/8 -j REJECT
    
    # Accept all established inbound connections
    -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    
    # Allow all outbound traffic - you can modify this to only allow certain traffic
    -A OUTPUT -j ACCEPT
    
    # Allow HTTP and HTTPS connections from anywhere (the normal ports for websites and SSL).
    -A INPUT -p tcp --dport 80 -j ACCEPT
    -A INPUT -p tcp --dport 443 -j ACCEPT
    
    # Allow ports 111 and 2049 tcp/udp for NFS sharing to work
    -A INPUT -p tcp --dport 2049 -m state --state NEW -j ACCEPT
    -A INPUT -p udp --dport 2049 -m state --state NEW -j ACCEPT
    -A INPUT -p tcp --dport 111 -m state --state NEW -j ACCEPT
    -A INPUT -p udp --dport 111 -m state --state NEW -j ACCEPT
    # Allow port 548 for TimeMachine and AFP
    -A INPUT -p tcp --dport 548 -m state --state NEW -j ACCEPT
    -A INPUT -p udp --dport 548 -m state --state NEW -j ACCEPT
    # Allow port for phpvirtualbox
    -A INPUT -p tcp --dport 18083 -m state --state NEW -j ACCEPT
    -A INPUT -p udp --dport 18083 -m state --state NEW -j ACCEPT
    -A INPUT -p tcp --dport 9000:9100 -m state --state NEW -j ACCEPT
    -A INPUT -p udp --dport 9000:9100 -m state --state NEW -j ACCEPT
    # Allow port for webmin
    -A INPUT -p tcp --dport 10000 -m state --state NEW -j ACCEPT
    -A INPUT -p udp --dport 10000 -m state --state NEW -j ACCEPT
    # Allow ports for minidlna
    -A INPUT -p tcp --dport 8200 -m state --state NEW -j ACCEPT
    -A INPUT -p udp --dport 1900 -m state --state NEW -j ACCEPT
    # Allow ports for FTP
    -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
    -A OUTPUT -p tcp -m tcp --dport 21 -j ACCEPT
    -A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
    -A OUTPUT -p tcp -m tcp --dport 20 -j ACCEPT
    -A INPUT -p tcp --dport 49152:65534 -m state --state RELATED,ESTABLISHED,NEW -j ACCEPT
    
    # Allow SSH connections
    #
    # The -dport number should be the same port number you set in sshd_config
    #
    -A INPUT -p tcp -m state --state NEW --dport 22 -j ACCEPT
    
    # Allow ping
    -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
    
    # Log iptables denied calls
    -A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
    
    # Drop all other inbound - default deny unless explicitly allowed policy
    -A INPUT -j DROP
    -A FORWARD -j DROP
    
    COMMIT
    Recommended Resources: Ubuntu Linux Resources

  4. #14
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: NFS folders are no longr auto-mounting at boot up

    Quote Originally Posted by PartisanEntity View Post
    I use ssh to terminal into the server.

    I recently had to enable plain ftp because my IP cam doesn't support any other protocol.
    Ah - IP-cams do tend to suck from a security standpoint.

    Back to NFS ... I haven't changed any firewall rules for NFS in years.

  5. #15
    Join Date
    Nov 2006
    Location
    Vienna, Austria
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: NFS folders are no longr auto-mounting at boot up

    OK thanks so much for all the feedback.

    I am currently about to set up the autofs route.
    Recommended Resources: Ubuntu Linux Resources

  6. #16
    Join Date
    Nov 2006
    Location
    Vienna, Austria
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: NFS folders are no longr auto-mounting at boot up

    Unless I did it wrong, the autofs method did not work.

    The /etc/rclocal method worked:

    I put "mount -a" in /etc/rc.local (before the "exit 0" line) and it works. My machine takes a little longer to show the desktop after I log in, but once it displays the desktop my NFS shares are mounted.

    I can live with this "dirty" fix for now. Hoping the main issue will be resolved some time.

    Thanks so much TheFu and darkod
    Recommended Resources: Ubuntu Linux Resources

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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