Results 1 to 2 of 2

Thread: iptables advice

  1. #1
    Join Date
    May 2007

    iptables advice

    My setup:

    Vmware Host (eth0) --- iptables (NAT) --- Vmware GuestOS (vmnet1 ::

    My iptables config:

    # Masquerade all traffic (allow NAT traffic through VM Guest)
    # vmnet1 --- host-only network ---
    iptables --table nat -A POSTROUTING --out-interface eth0 -j MASQUERADE
    iptables -A FORWARD --in-interface vmnet1 -j ACCEPT
    iptables -A INPUT -i vmnet1 -s -d $SERVER_IP -j ACCEPT
    I would like to access SAMBA (this sits on the Vmware Host) from within Vmware GuestOS.
    e.g. \\\SAMBA

    I'm at a lost at how to configure the iptables to grant this access from the Vmware GuestOS.

    Any help or recommendations will be kindly appreciated.


  2. #2
    Join Date
    May 2008
    Center of England
    Ubuntu 10.04 Lucid Lynx

    Re: iptables advice

    Samba needs the following ports

    137 udp
    138 udp
    139 tcp
    445 tcp

    Hope that helps.
    vim Java PHP Perl and C a long time ago :/
    ssh_user to ssh in then su to sudo_user. They have to guess 'name' and 'password' X 2 - sudo is good


Posting Permissions

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