IPFW+NAT

2002-12-07 Thread Nelis Lamprecht
Hi List Has anyone come across a recent ( not old please ) Howto/Info/Manual/Example on using IPFW _dynamic_ rules function with NAT ? If so, please could you point me in the right direction. Thanks. Kind Regards, Nelis To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd

IPFW & NAT Help

2004-03-24 Thread Henry Blackman
Hello Everyone. I really some help with my IPFW setup. I'm using FreeBSD 4.9 and IPFW (not 2). The background is I run a residential network for students on campus, where the FreeBSD box sits between their LAN, and the rest of College (and therefore the Internet). We are having terrible trouble

rc.firewall/ipfw/nat

2002-12-08 Thread bowen
Hi all need a little help ,) what I currently have internet --- cable modem(via DHCP) ---[ed0 Smoothwall0.9.9se ed1] --- 10/100Switch --- int network what I want to have internet --- cable modem --- [ "dc0"{FreeBSD4.7-RELEASE}"dc1"]- 10/100Switch internal network # set these to your out

Re: rc.firewall/ipfw/nat

2002-12-08 Thread Jack L. Stone
At 11:18 AM 12.8.2002 -0700, bowen wrote: >Hi all need a little help ,) > >what I currently have >internet --- cable modem(via DHCP) ---[ed0 Smoothwall0.9.9se ed1] --- >10/100Switch --- int network > >what I want to have >internet --- cable modem --- [ "dc0"{FreeBSD4.7-RELEASE}"dc1"]- >10/100Sw

ipfw + NAT doesn't work

2009-09-17 Thread Robert Huff
Samba. With the ipfw rules appended below, I can't NAT, nor should I be able to. ("em0" faces the Internet; "em1" faces the other machine.) However: using these I still can't get through ipfw add 5000 nat 15 all from any to any ipfw nat 15

Re: ipfw + NAT doesn't work

2009-09-17 Thread Ruben de Groot
On Thu, Sep 17, 2009 at 10:14:15AM -0400, Robert Huff typed: > > I have a machine running > > FreeBSD 9.0-CURRENT #3: Tue Sep 15 18:49:58 EDT 2009 amd64 > > It has this in the config file for the running kernel: > > options IPFIREWALL #firewall > options IPFIREWALL_V

Re: ipfw + NAT doesn't work

2009-09-18 Thread Ruben de Groot
added, I should be able to get out, but > can't. > Clear? I think so. What's your outgoing ip? The rules you posted: >ipfw add 5000 nat 15 all from any to any >ipfw nat 15 config log same_ports ip 10.0.0.0/8 ^^ Looks s

IPFW, NAT, jailed MySQL connection problem.

2005-06-14 Thread Daniel Nystrom
Hi, I seem to have stumbled upon a tiny problem that just will not go away. I was hoping there would be an answer somewhere before I put my deep-into-the-dirt-boots on. The software setup of the problem: FreeBSD 5.4 Release ipfw natd named jail Mysql 4.1 Server Mysql 4.1 client Hardware 1 extern

DNS Names resolution in ipfw+nat ?

2005-04-07 Thread faisal gillani
Well i read couple of how,to artical on the internet regarding setting up a ipfw firewall with nat to allow your private network client to setup internet access , but their isnt one thing clear to me , which was not present in any of the articals , which is how there internal clients gona resolve

new ipfw/nat ruleset for gateway

2003-01-30 Thread Redmond Militante
hi all i have my test machine set up as a gateway box, with ipfw/natd configured on it, set up to filter/redirect packets bound for a client on my internal network. external ip of my internal client is aliased to the outside nic of the gateway box gateway machine's kernel has been recompiled wi

Help ipfw / nat / JetDirect Pain Appreciated

2010-03-02 Thread Tim Daneliuk
I would appreciate any insight you folk here might have for the following problem. What I am trying to do is have wireless clients on one network print to a JetDirect-connected printer on another network as follows: Machine A is a NATing firewall (FBSD 8.0) for nonroutable network A - 192.168.0

ipfw, NAT and CISCO IPSec VPNs

2009-08-10 Thread Jonathan Belson
Hiya I've got a pretty standard network which uses a FreeBSD server to perform NAT between my internal IPs (192.168.0.x) and the outside world. Everything is working tickety-boo, but I'm trying to tweak my firewall rules (ipfw, based on the 'SsIiMmPpLlEe' firewall template in rc.firewall) to

Re[2]: ipfw + NAT doesn't work

2009-09-17 Thread Robert Huff
writes: > >> If not ... how do I figure out what's wrong? > What is your ipfw rules? They were appended to the original post. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://

Re[2]: ipfw + NAT doesn't work

2009-09-17 Thread Коньков Евгений
Здравствуйте, Ruben. >> If not ... how do I figure out what's wrong? What is your ipfw rules? Вы писали 17 сентября 2009 г., 20:45:01: RdG> On Thu, Sep 17, 2009 at 10:14:15AM -0400, Robert Huff typed: >> >> I have a machine running >> >> FreeBSD 9.0-CURRENT #3: Tue Sep 15 18:49:58

Re: DNS Names resolution in ipfw+nat ?

2005-04-07 Thread Eric McCoy
faisal gillani wrote: Well i read couple of how,to artical on the internet regarding setting up a ipfw firewall with nat to allow your private network client to setup internet access , but their isnt one thing clear to me , which was not present in any of the articals , which is how there internal

Using IPFW/NAT with multiport PCI cards

2004-03-30 Thread Odhiambo Washington
Dear Ladies and Gentlemen, I am writing to request for advise/recommendations on the subject. I've been tasked to build a router/firewall based on FreeBSD. I'd like to use 5.2-RELEASE. Now my only problem is that I have played a little with ipfw in a situation where I have just two interfaces, 1

Recompile kernel or module for ipfw+nat?

2008-09-23 Thread n j
Hello everyone, I have a quick question regarding the setup of nat with ipfw. According to the handbook: "The following options must be in the kernel configuration file: options IPFIREWALL options IPDIVERT" however, there is a kernel module called ipdivert.ko similar to ipfw.ko for the firewall.

Re: ipfw, NAT and CISCO IPSec VPNs

2009-08-10 Thread Nerius Landys
> I've got a pretty standard network which uses a FreeBSD server to perform > NAT between my internal IPs (192.168.0.x) and the outside world.  Everything > is working tickety-boo, but I'm trying to tweak my firewall rules (ipfw, > based on the 'SsIiMmPpLlEe' firewall template in rc.firewall) to al

RE: Using IPFW/NAT with multiport PCI cards

2004-03-30 Thread Toni Heinonen
> I am writing to request for advise/recommendations on the > subject. I've > been tasked to build a router/firewall based on FreeBSD. I'd > like to use > 5.2-RELEASE. > > Now my only problem is that I have played a little with ipfw in a > situation where I have just two interfaces, 1 external a

Re: Using IPFW/NAT with multiport PCI cards

2004-03-30 Thread Wayne Pascoe
On Tue, Mar 30, 2004 at 11:06:16AM +0300, Odhiambo Washington wrote: > Now my only problem is that I have played a little with ipfw in a > situation where I have just two interfaces, 1 external and 1 internal. > My current requirement however involves one external interface and > four (or more) in

ipfw nat inbound keep-state with net.inet.ip.fw.one_pass=0

2011-06-21 Thread umage
Hi, I'm an ipfw user that finally got the opportunity to set up NAT on an interface with a public IP. I was doing some multi-homing experiments using ipfw fwd combined with outbound ipfw nat - and since I needed to run both, and both immediately ended ipfw ruleset execution, I had to tur

Re: Recompile kernel or module for ipfw+nat?

2008-09-24 Thread Christer Hermansson
n j wrote: Hello everyone, I have a quick question regarding the setup of nat with ipfw. According to the handbook: "The following options must be in the kernel configuration file: options IPFIREWALL options IPDIVERT" however, there is a kernel module called ipdivert.ko similar to ipfw.ko for

Re: Recompile kernel or module for ipfw+nat?

2008-09-30 Thread n j
>> however, there is a kernel module called ipdivert.ko >> Is it still necessary to recompile the kernel in order to use nat with >> ipfw? Or, to put it another way, is there a possibility to use nat and >> keep the generic kernel? > You can choose to use the modules or make it static by recompile

Re: ipfw nat inbound keep-state with net.inet.ip.fw.one_pass=0

2011-06-23 Thread Ian Smith
combined with outbound ipfw nat - and since I needed to > run both, and both immediately ended ipfw ruleset execution, I had to > turn off net.inet.ip.fw.one_pass. > > This is where I discovered that with that setting turned off, my inbound > NAT rule stopped working. Seems that wit

Re: ipfw nat inbound keep-state with net.inet.ip.fw.one_pass=0

2011-06-23 Thread umage
Some points: 1) I did use the handbook as reference, and my ruleset mimics the layout used there. 2) Handbook uses divert natd, which I used until I switched to the kernel nat approach. 3) I did not find any concrete examples of ipfw nat rule usage, so I'm using them the old natd way.

Re: ipfw nat inbound keep-state with net.inet.ip.fw.one_pass=0

2011-06-25 Thread Ian Smith
dbook uses divert natd, which I used until I switched to the kernel nat > approach. Assuming that was working, is changing to ipfw nat the only difference? Or is that when you added fwd to the mix? Is 192.168.0.55 another box on the LAN, or an IP alias on this box? What says 'netstat -fine

ipfw nat and jails on loopback - is it possible?

2010-07-09 Thread Michael
"/etc/ipfw.rules" firewall_nat_enable="YES" firewall_nat_interface="wlan0" /etc/resolve.conf nameserver 208.67.222.222 nameserver 208.67.220.220 /etc/ipfw.conf ipfw -q -f flush ipfw add 1 allow all from 127.0.0.1 to 127.0.0.1 via lo0 ipfw add

Can't get in-kernel IPFW NAT (libalias) to work

2008-10-05 Thread n j
box, I can see packets arriving at the destination, so the forwarding part (routes) works fine. However, when I add an ipfw rule to send these packets to the nat instance, the packets disappear instead of arriving nat'ted to the same destination. Did anyone have any success in getting the in

Re: ipfw nat and jails on loopback - is it possible?

2010-07-09 Thread Randal L. Schwartz
> "Michael" == Michael writes: Michael> Does anybody has a working configuration with ipfw nated jails Michael> on loopback interface? I noticed in my pf.conf that I had "set skip on lo". I changed that to "set skip on lo0" (still advisable), and then created an "lo1" using ipv4_addrs_l

Re: ipfw nat and jails on loopback - is it possible?

2010-07-19 Thread Aiza
ipfw add 2 nat 100 ip from 127.127.127.1 to any via wlan0 keep-state ipfw nat 100 config ip 192.168.1.111 ipfw add 3 allow all from any to any Jailed system configuration: /etc/rc.conf network_interfaces="" /etc/resolve.conf nameserver 208.67.222.222 nameserver

Re: ipfw nat and jails on loopback - is it possible?

2010-07-19 Thread Michael
On 19/07/2010 10:05, Aiza wrote: you have to put your hosts /etc/resolve.conf in each jail before you can get network connection. I did. It contains: nameserver 208.67.222.222 nameserver 208.67.220.220 I believe that it's not a problem with jail configuration because NAT works fine on the