I have a redhat 7.1 sever with a smb sever on it which have several Xp
client machies client1 client2 .... I use IPtable as firewall
I want to mount a folder on client1 to my server
The problem if i turn off iptables, I can mount a folder of client1 to
smb, but if the firewall is on i can not do that and even the command
"smbclient -L client1" will fail, I guess i need to allow the client1
go through the firewall. but do not know how to do it.
how can i fix this problem, think
Jianping
The best thing to do is figure out what your firewall is blocking, and only allow those ports through. You can do this with the logging facility. Check "man iptables" and search for the "LOG" target. You can put rules such as:
#iptables -A OUTPUT -j LOG --log-prefix "output dropped packet: "
and/or
#iptables -A INPUT -j LOG --log-prefix "input dropped packet: "
Study the dropped packets reported in /var/log/messages as you try to mount client1, it will let you know the source ip and port, destination ip and port, and protocol. Then figure out how to allow those with iptables. Everything you need is in the man page.
-- Regards,
Vinny
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list