Re: ipnat.conf - map and rdr won't work!

2010-07-23 Thread alexus
On Fri, Jul 23, 2010 at 2:43 PM, Erik Norgaard wrote: > On 23/07/10 18.58, alexus wrote: > >> i just did jail on public ip where i dont need to use ipnat, so >> obviously that works fine no problem >> not really what i wanted though but as a temporary fix its fine... > > With all respect, I think

Re: ipnat.conf - map and rdr won't work!

2010-07-23 Thread Erik Norgaard
On 23/07/10 18.58, alexus wrote: i just did jail on public ip where i dont need to use ipnat, so obviously that works fine no problem not really what i wanted though but as a temporary fix its fine... With all respect, I think you should start liking this solution, because for all I understan

Re: ipnat.conf - map and rdr won't work!

2010-07-23 Thread alexus
small update: i just re-build jail and again where I was... so it seems like its not jail related issue although ... I also tried new rdr rule but to resides on same interface and that worked no problem... i just did jail on public ip where i dont need to use ipnat, so obviously that works fine n

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread alexus
On Tue, Jul 20, 2010 at 2:54 PM, Erik Norgaard wrote: > On 20/07/10 20.07, alexus wrote: >> >> On Tue, Jul 20, 2010 at 12:57 PM, Erik Norgaard >>  wrote: >> plan b is to run natd, but i'd rather run ipnat especially that ipnat >> used to work before no problem! > > Maybe move away from what used t

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread Fbsd8
alexus wrote: On Tue, Jul 20, 2010 at 2:16 PM, Aiza wrote: alexus wrote: su-3.2# grep ^firewall /etc/rc.conf firewall_enable="YES" firewall_type="open" su-3.2# grep ^ip /etc/rc.conf ipfilter_enable="YES" ipmon_enable="YES" ipnat_enable="YES" ipnat_flags="-d" This is not good. You are

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread Erik Norgaard
On 20/07/10 20.43, alexus wrote: On Tue, Jul 20, 2010 at 2:16 PM, Aiza wrote: Just because 2 firewalls at same time didn't blow up in your face before, sure don't mean they are working correctly. Thats one bad assumption to base debugging on. i never had any problem doing so, not that i'm s

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread Erik Norgaard
On 20/07/10 20.07, alexus wrote: On Tue, Jul 20, 2010 at 12:57 PM, Erik Norgaard wrote: plan b is to run natd, but i'd rather run ipnat especially that ipnat used to work before no problem! Maybe move away from what used to work and towards what is working :) Whichever you prefer, just stick

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread alexus
On Tue, Jul 20, 2010 at 2:16 PM, Aiza wrote: > alexus wrote: >>> >>>  su-3.2# grep ^firewall /etc/rc.conf >>>  firewall_enable="YES" >>>  firewall_type="open" >>> >>>  su-3.2# grep ^ip /etc/rc.conf >>>  ipfilter_enable="YES" >>>  ipmon_enable="YES" >>>  ipnat_enable="YES" >>>  ipnat_flags="-d" >>>

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread Aiza
alexus wrote: su-3.2# grep ^firewall /etc/rc.conf firewall_enable="YES" firewall_type="open" su-3.2# grep ^ip /etc/rc.conf ipfilter_enable="YES" ipmon_enable="YES" ipnat_enable="YES" ipnat_flags="-d" This is not good. You are running 2 different firewalls at the same time. comment out f

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread alexus
On Tue, Jul 20, 2010 at 1:03 PM, Erik Norgaard wrote: > On 20/07/10 18.37, alexus wrote: > >>> You are running 2 different firewalls at the same time. >>> comment out >>> firewall_enable="YES" >>> firewall_type="open" >>> >>> and reboot your system. >> >> do you know that for a fact or you just gu

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread alexus
On Tue, Jul 20, 2010 at 12:57 PM, Erik Norgaard wrote: > On 20/07/10 18.02, alexus wrote: >> >> On Mon, Jul 19, 2010 at 12:38 PM, Erik Norgaard >>  wrote: >>> >>> On 19/07/10 16.46, alexus wrote: >>> Can't help you more, really, you need to investigate where packets are >>> dropped, tcpdump is a g

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread Erik Norgaard
On 20/07/10 18.37, alexus wrote: You are running 2 different firewalls at the same time. comment out firewall_enable="YES" firewall_type="open" and reboot your system. do you know that for a fact or you just guessing?? because first of all it worked before just fine with 2 firewalls second i

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread Erik Norgaard
On 20/07/10 18.02, alexus wrote: On Mon, Jul 19, 2010 at 12:38 PM, Erik Norgaard wrote: On 19/07/10 16.46, alexus wrote: Can't help you more, really, you need to investigate where packets are dropped, tcpdump is a great tool and the man-page is excelent, can't explain it better, if you don't li

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread alexus
>  su-3.2# grep ^firewall /etc/rc.conf >  firewall_enable="YES" >  firewall_type="open" > >  su-3.2# grep ^ip /etc/rc.conf >  ipfilter_enable="YES" >  ipmon_enable="YES" >  ipnat_enable="YES" >  ipnat_flags="-d" > > This is not good. > You are running 2 different firewalls at the same time. > comme

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread Aiza
alexus wrote: On Mon, Jul 19, 2010 at 12:38 PM, Erik Norgaard wrote: On 19/07/10 16.46, alexus wrote: Use tcpdump, you should see if your rdr/map rules work as expected. Also, pfctl -ss and similar. i don't know how to use tcpdump, can you provide exact syntax so i can run it? The man-page i

Re: ipnat.conf - map and rdr won't work!

2010-07-20 Thread alexus
On Mon, Jul 19, 2010 at 12:38 PM, Erik Norgaard wrote: > On 19/07/10 16.46, alexus wrote: > > Use tcpdump, you should see if your rdr/map rules work as expected. > Also, > pfctl -ss and similar. i don't know how to use tcpdump, can you provide exact syntax so i can r

Re: ipnat.conf - map and rdr won't work!

2010-07-19 Thread Erik Norgaard
On 19/07/10 16.46, alexus wrote: Use tcpdump, you should see if your rdr/map rules work as expected. Also, pfctl -ss and similar. i don't know how to use tcpdump, can you provide exact syntax so i can run it? The man-page is excelent. tried that, unfortunately not really sure what am i doing

Re: ipnat.conf - map and rdr won't work!

2010-07-19 Thread alexus
On Sat, Jul 17, 2010 at 7:51 AM, Erik Norgaard wrote: > On 16/07/10 02.56, alexus wrote: > > su-3.2# cat /etc/ipnat.rules > map fxp0 lama ->    0/32 > rdr fxp0 64.52.58.58 port ssh ->    lama port ssh tcp >>> >>> What's that first rule supposed to do? >> >> provides a NAT within jail >

Re: ipnat.conf - map and rdr won't work!

2010-07-17 Thread Erik Norgaard
On 16/07/10 02.56, alexus wrote: su-3.2# cat /etc/ipnat.rules map fxp0 lama ->0/32 rdr fxp0 64.52.58.58 port ssh ->lama port ssh tcp What's that first rule supposed to do? provides a NAT within jail Just guessing, try to put the rdr rule first. Another thing, the firewall/nat may

Re: ipnat.conf - map and rdr won't work!

2010-07-15 Thread alexus
On Thu, Jul 15, 2010 at 6:55 PM, Erik Norgaard wrote: > On 15/07/10 21.17, alexus wrote: >> >> On Wed, Jul 14, 2010 at 10:32 PM, alexus  wrote: >>> >>> I can't put my mind around it, before reboot I was able to ssh in from >>> outside to my jail and right now I can't! > > What did you change? as

Re: ipnat.conf - map and rdr won't work!

2010-07-15 Thread Erik Norgaard
On 15/07/10 21.17, alexus wrote: On Wed, Jul 14, 2010 at 10:32 PM, alexus wrote: I can't put my mind around it, before reboot I was able to ssh in from outside to my jail and right now I can't! What did you change? su-3.2# cat /etc/ipnat.rules map fxp0 lama -> 0/32 rdr fxp0 64.52.58.58 por

Re: ipnat.conf - map and rdr won't work!

2010-07-15 Thread alexus
On Wed, Jul 14, 2010 at 10:32 PM, alexus wrote: > I can't put my mind around it, before reboot I was able to ssh in from > outside to my jail and right now I can't! > I even rebuild the whole system and even that didn't help:( > anyone have any ideas? > > su-3.2# cat /etc/ipnat.rules > map fxp0 la

ipnat.conf - map and rdr won't work!

2010-07-14 Thread alexus
I can't put my mind around it, before reboot I was able to ssh in from outside to my jail and right now I can't! I even rebuild the whole system and even that didn't help:( anyone have any ideas? su-3.2# cat /etc/ipnat.rules map fxp0 lama -> 0/32 rdr fxp0 64.52.58.58 port ssh -> lama port ssh tcp