[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

NetBIOS? problem



Hello all!
I have a dedicated server (linux-2.4.7+xfs+iptables).

I have a following problem:
1. Internet works fine.
2. PDC (Samba) works fine too. 
	Windows users can log on to the server and use their profiles.
3. Sharings om the server (PDC) works.
4. Mail server (qmail) works.

It is good, isn't it?!

BUT!!!

I have one accounting programm (it's rather special, 
Russian "Info-Buhgalter"),
and it doesn't work!!! It uses the server as a file-server.
Only NetBIOS file operations. What is the problem in?

Here is my config, please, any comments!

#!/bin/bash
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -P FORWARD ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT

iptables -N LOCAL
iptables -A LOCAL -s ! 192.168.0.0/24 -j DROP
#using proxy...
iptables -A LOCAL -s 192.168.0.0/24 -p tcp --dport 80 -j DROP
iptables -A LOCAL -s 192.168.0.0/24 -p tcp --dport 21 -j DROP
iptables -A LOCAL -j ACCEPT

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

iptables -N CHECK
iptables -A CHECK -s 192.168.0.0/24 -i eth0 -j ACCEPT
iptables -A CHECK -p tcp --dport 25 -j ACCEPT
iptables -A CHECK -j DROP

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -j CHECK

iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -m state --state NEW -j LOCAL




Reply to: