I can dial to my ISP using ppp ddial command, and i can ping my OBSD server from and to my win2000 client, but when i tried to ping from the OBSD server it goes fail.
my network card is Realtek PCI and been identified as ne3 and my modem identified as tun0. I'm using dial up connection to my ISP.
this is my pf.conf that i copied from the pf manual.
# macros
int_if = "ne3"
ext_if = "ep0"
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
When i run the pf.conf using pfctl -f command i got this message:
1."cannot resolve ne3:network: temporary fail in name resolution "
(this error in every line that consist of $int_if variable)
2."pfctl:syntax error in fle: pf rules not load"
can somebody tell me what's wrong with my pf configuration?
thank's
my network card is Realtek PCI and been identified as ne3 and my modem identified as tun0. I'm using dial up connection to my ISP.
this is my pf.conf that i copied from the pf manual.
# macros
int_if = "ne3"
ext_if = "ep0"
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
When i run the pf.conf using pfctl -f command i got this message:
1."cannot resolve ne3:network: temporary fail in name resolution "
(this error in every line that consist of $int_if variable)
2."pfctl:syntax error in fle: pf rules not load"
can somebody tell me what's wrong with my pf configuration?
thank's