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 10-07-2004, 05:55 PM   #1
zeroboys
LQ Newbie
 
Registered: Feb 2004
Distribution: redhat9
Posts: 11

Rep: Reputation: 0
little problem with Masquerade and samba


Hey guys...
i don't even know how i have to ask about this problem ..
first of all let me ask about Masquerade..
all i did was to copy all things from some web to one of file named rc.local

eth0 = 192.168.3.101 (connected to internet)
eth1 = 192.168.6.1 (dhcp server)

===================this is rc.local============
route add -host 255.255.255.255 dev eth1
route add -host 255.255.255.255 dev eth0

/sbin/iptables -F
echo "1" > /proc/sys/net/ipv4/ip_forward
#iptables -P FORWARD DROP
/sbin/iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_nat_ftp
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
==============================================
is this correct setting for Masquerade ???
just wonder about last line which has eht0 ..lsn't this supposed to be connected to internet..??


and now samba...(all i understand about samba is can be seen from Window and i can see the window as well ) correct me if this isn't ...

==========================smb.conf=========================
[global]
[root]
path = /root
writeable = yes

[root directory]
path = /
writeable = yes

[zeroboys directory]
path = /home/zeroboys
writeable = yes
browseable = yes
create mask = 0777
directory mask = 0777

netbios name = "whatthe"
=====================================================
now i can see the windows folder by mounting and from Network server which is located in Manin Menu that's ok.. but problem is i don't see it from windows it tells me this
when i tried to connect from the RUN "\\192.168.6.1" like this...
this is the error message
" \\192.168.6.1 is not accessble
the account is not authorized to log in from this station"

i do understand what the heck that is .. but i don't really know where i can fix the problem in linux.. i made a account for windwos ..


give me any advice what i have done wrong ...thanks in advance..
 
  


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
client email problem with iptables masquerade amado Linux - Networking 2 10-13-2004 10:46 AM
masquerade problem (internet sharing) Pres Linux - Networking 4 04-27-2004 09:24 AM
Route/Masquerade problem spony Linux - Networking 5 01-06-2004 09:59 AM
very weird ip-masquerade problem. saturn_vk Linux - Networking 3 11-10-2003 12:42 PM
IP Masquerade help armcfall Linux - Networking 6 06-24-2003 09:06 AM

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

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