Displaying 2 results from an estimated 2 matches for "netbiosport".
Did you mean:
netbiosports
2001 Apr 28
0
How can I do this? Please, help me
.../tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS session service
netbios-ssn 139/udp
I'm using the IPCHAINS and I configured in this way:
ipchains -A input -i $EXTERNAL_INTERFACE \
-s $ANYWHERE $NETBIOSPORTS -p tcp \
-d $IPADDR $NETBIOSPORTS -j ACCEPT
ipchains -A output -i $EXTERNAL_INTERFACE \
-s $IPADDR $NETBIOSPORTS -p tcp \
-d $ANYWHERE $NETBIOSPORTS -j ACCEPT
ipchains -A input -i $EXTERNAL_INTERFACE \
-s $ANYWHERE $NETBIOSPORTS -p udp \
-d $IPADDR $NETBIOSPORTS -j ACCEPT
ipchains -A output -i...
2003 Feb 20
0
Netbios name service forwarding.
.../types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
#include <malloc.h>
#include <net/if.h>
#include <arpa/inet.h>
#define NETBIOSPORT 137
typedef struct iface_struct
{
struct iface_struct *next;
char *name;
int fd;
struct sockaddr_in me;
struct sockaddr_in nmbd;
struct sockaddr_in bcast;
struct sockaddr_in addr_cache[0x10000];
}
*iface;
iface ifs;
void
open_if (char *name, int nb_port, int dm_port)
{
struct s...