LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2004, 11:37 PM   #1
logicdisaster
Member
 
Registered: Jun 2004
Posts: 41

Rep: Reputation: 15
Samba & IPTABLES & Network Drives Oh My!


I have samba running under RH9 and i had a little trouble mapping the drive on my windows xp boxes only to find out it was because the iptables on the rh9 machine were blocking me. So i turned off iptables and now i have no problem connecting to the samba drive. My question is how can i set up iptables to allow only certain computers. And also does anyone know if theres a way that someone outside of my firewall like a friend could connect to my samba drive as one of their network drives. I wanna have it as a file server.
 
Old 06-03-2004, 02:44 AM   #2
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
First off you don't want to allow access to samba from the internet. I would block everything you don't use, turn your firewall back on. And run SSH for your friends to get the files they need. As for your internal network (you have two nic cards right?) you should allow your computers IP with something like:

iptables -A INPUT -i eth0 -s xx.xx.xx.xx -j ACCEPT

Last edited by micxz; 06-03-2004 at 01:12 PM.
 
Old 06-03-2004, 03:15 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
For a file server over the internet you need to use ftp or http for public use, download only.
For private use and uploads you could use secure http to share files.

You can also use sftp for upload and download which is secure. A user would have access to there files with sftp, you could also setup a shared area for certain groups. sftp comes with the ssh app that's already on most linux systems and also comes with putty for win32.

As an alternative check openvpn. With openvpn you will need to configure all of the systems.

With a solution like https, or sftp you just setup the server and users will be able to login. Any machine should be able to use https, and Putty's sftp (psftp.exe) could easily be run from a simple download from any windows machine.


Last edited by DavidPhillips; 06-03-2004 at 03:28 AM.
 
Old 06-03-2004, 07:07 PM   #4
logicdisaster
Member
 
Registered: Jun 2004
Posts: 41

Original Poster
Rep: Reputation: 15
thanks i figured out probably the best way for me to do this is to just have my local network use samba so i can map the network drive but for my friends i just told them to download winscp. Everything seems to work fine this way.

Thanks alot for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 03:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 01:39 PM
Hard drives start at hdc && fdisk doesn't show hde triet Linux - Hardware 0 11-03-2004 10:25 PM
iptables & samba mounts larsenmtl Linux - Security 4 10-12-2004 12:16 AM
SuSE9 && Samba && Win2k DaFrEQ Linux - Software 2 01-27-2004 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration