View Single Post

   
  #1 (permalink)  
Old 02-16-2008, 06:28 AM
hazz
 
Posts: n/a
Default pls try to help my pf3.4

Hi to everyone i hope that someone could giveme some tips
i got a router adsl
internet--------------------modem-router(ip10.0.0.2)---(192.168.1.9)rl0ope
nbsd3.4rl1(dhcp)---hub---win2000


|____knoppix
the problem is i can't see win2000 even if i setting it in dynamically ip
with the dns of my isp is the same for knoppix
here is my pf and dhcp.conf
my /etc/hostname.rl0
inet 192.168.1.9 255.255.2550 NOME
/etc/hostname.rl1
dhcp NONE NONE NONE
if i do pfctl -d my connection works
what am i doing wrong???
my gateway is my router adsl pointme out about this
if i got pfctl -e and doing lynx www.google.com i got no route to host or
similar
thanks in advance
is almost 2month that i'm trying to work it out
ciao
# macros
int_if = "rl1"
ext_if = "rl0"
tcp_services = "{ 22, 113 }"
icmp_types = "echoreq"
priv_nets = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 }"
# options
set block-policy return
set loginterface $ext_if
# scrub
scrub in all
# nat/rdr
nat on $ext_if from $int_if:network to any -> ($ext_if)
rdr on $int_if proto tcp from any to any port 21 -> 127.0.0.1 \
port 8021
# filter rules
block all
pass quick on lo0 all
block drop in quick on $ext_if from $priv_nets to any
block drop out quick on $ext_if from any to $priv_nets
pass in on $ext_if inet proto tcp from any to ($ext_if) \
port $tcp_services flags S/SA keep state
pass in inet proto icmp all icmp-type $icmp_types keep state
pass in on $int_if from $int_if:network to any keep state
pass out on $int_if from any to $int_if:network keep state
pass out on $ext_if proto tcp all modulate state flags S/SA
pass out on $ext_if proto { udp, icmp } all keep state

and here my dhcp.conf
# $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $

#

# DHCP server options.

# See dhcpd.conf(5) and dhcpd(8) for more information.

#

# Network: 192.168.1.0/255.255.255.0

# Domain name: my.domain

# Name servers: 192.168.1.3 and 192.168.1.5

# Default router: 192.168.1.1

# Addresses: 192.168.1.32 - 192.168.1.127

#

shared-network LOCAL-NET {

option domain-name "HAZZi.com";

option domain-name-servers 192.168.0.1, 192.168.1.5;

option netbios-name-servers 192.168.0.105;

subnet 192.168.0.0 netmask 255.255.255.0 {

option routers 192.168.0.1;

range 192.168.0.100 192.168.0.110;

}

}

and my dhcp.interfaces

rl1





Reply With Quote