LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10: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, 01:44 AM   #2
micxz
Senior Member
 
Registered: Sep 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 12:12 PM.
 
Old 06-03-2004, 02: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 02:28 AM.
 
Old 06-03-2004, 06: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



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 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Hard drives start at hdc && fdisk doesn't show hde triet Linux - Hardware 0 11-03-2004 09:25 PM
iptables & samba mounts larsenmtl Linux - Security 4 10-11-2004 11:16 PM
SuSE9 && Samba && Win2k DaFrEQ Linux - Software 2 01-27-2004 07:45 AM

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

All times are GMT -5. The time now is 09:25 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