Re: [SLE] NFS with SuSEfirewall2

From: Radule Soskic (rms_at_telekom.yu)
Date: 09/08/04

  • Next message: Jim Sabatke: "Re: [SLE] Activating the Win key"
    To: suse-linux-e@suse.com
    Date: Wed, 08 Sep 2004 15:22:14 +0200
    
    

    On Wed, 2004-09-08 at 07:36 -0500, John N. Alegre wrote:
    > >I have a nfs client/server pair (suse 9.1) which works fine, but only if
    > >I shut down suSEfirewall2 on both computers.
    > >
    > Just yesterday I posted my solution to this problem. There was a three day
    > thread on this topic. My solution was to add
    >
    > FW_TRUSTED_NETS="XXX.XXX.XXX.XXX"
    >
    > to the Firewall config file and restart the Firewall. Naturally the XXX are
    > replaced with the static IPs of the machines I which to trust. This in the
    > config file is very well commented and easy to understand. Be sure to
    > restart the Firewall or reboot after commenting the config file.
    >
    > As Dylan did point out if your entry in the /etc/exports is *(aa, bb ...) this
    > will open up your exported directories to a minor security hole so I changed
    > the etc/exports to XXX.XXX.XXX.XXX(aa, bb ...). Again this is well commented
    > in the /etc/exports file.
    >
    > Check the post in the archives in the last 3 or 4 days. The title is
    > something like Ports for NFS.
    >
    > john

    Thank you, John. I've seen your post already. This works in my case,
    too. But, as far as I understand, your solution opens FW for *all*
    traffic coming from the adress(es) that are specified in FW_TRUSTED_NETS
    statement. While I don't see any reason against aplying this to my
    particular client/server arrangement, I would not accept it as a general
    solution. It is more like a workaround conditioned by fact that we don't
    know how to limit the number of open ports to the ports that are
    actually used in nfs mount process. Strange that noone posted the actual
    and complete portlist yet. I am not good enough with the principles of
    rpc, and have no time to study it now, but beleive that there must be
    more ports involved (and probably dynamicaly alocated), than just the
    111 and 2049, and the fact that they're being closed on FW causes the
    trouble.

    What I did up to now is the following:
    1. put 111 and 1049 in both FW_SERVICES_EXT_TCP and FW_SERVICES_EXT_UDP
    on my server and client
    2. put "mountd nfs" string in FW_SERVICES_EXT_RPC on the server

    Now, if I swich on my server side FW *and* switch off FW on client,
    everything works OK. This, I assume, means that my server side is
    configured OK now. But, if I switch on the client side FW too, then I
    get "rpc time out" error again. My diagnostics genius takes this as a
    proof that client side FW needs further tweaking.

    I was not able to do No.2 of the above to the client, since there is an
    earlier version of SuSE FW, which seems not to understand this
    particular statement. This evening I will check everything with an
    up-to-date SuSE 9.1 client. I hope the results will be better than.

    Regards,

    cikasole

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Jim Sabatke: "Re: [SLE] Activating the Win key"

    Relevant Pages

    • RE: serial ports?
      ... including the client file system, smart cards, audio, serial ... ports, printers, and the clipboard. ... terminal services only can redirect the serial ports to the Terminal ... redirected to the Terminal Server. ...
      (microsoft.public.windows.terminal_services)
    • Re: Exchange ports through firewall?
      ... I take there are too many ports to open if we use the full client method? ... in this case if you want to provide clients RPC/MAPI access across a firewall, you can restrict clients and server to a narrower range of ports, or alternatively open a lot more ports on the firewall. ...
      (microsoft.public.exchange.admin)
    • Re: Microsoft FTP and Linksys BEFSR41 (okay, Kerio 2.1.5 also)
      ... configure PASV on your server, and ask people to use PASV ... If the client has a router which isnt well implemented for FTP ... it will drop incoming connections on high ports ...
      (comp.security.firewalls)
    • Blocking Morpheus
      ... the server here is linux. ... With Morpheus and it client side. ... to be using random ports to connect in. ...
      (comp.security.firewalls)
    • Re: How to setup Manual printer redirection
      ... The client must be ... > connected to the terminal server during manual redirection. ... Ports for all clients currently connected ...
      (microsoft.public.windows.terminal_services)