Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th May 2008
mitak mitak is offline
New User
Join Date: May 2008
Posts: 1
Default ipfw destination nat problem

I have tried to make destination nat with freebsd the last few days, but unfortunately with no success. I've been doing it before with Linux, but wanted to try with freebsd as it has other advantages over Linux. The scenario is the following:
We are an ISP and every month with have to warn clients from the internal network that have not payed, by redirecting their packets to a web server again in the internal network.
I have tried all possible options with natd and .. no success.

Please HELP!
Reply With Quote
Reply With Quote
  #2   (View Single Post)  
Old 12th May 2008
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,610

On FreeBSD you could try the pf packet filter. Then it would be something like this.
table <not_paid> persist
rdr pass on $ext_if inet proto tcp from <not_paid> port 80  -> port 80
The table <not_paid> can be filled with IP addresses like this
pfctl -t not_paid -Tadd
See http://daemonforums.org/showthread.php?t=108 for more information about pf
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 15th May 2008
l2fl2f's Avatar
l2fl2f l2fl2f is offline
Real Name: Yves Guerin
Port Guard
Join Date: May 2008
Location: Montreal, Quebec, Canada
Posts: 25


add ipfw rules based on their ip familly and do a redirect

or give what you try to do to find the problem.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure ipfw with 4 modems??? m4st3rcr4zy FreeBSD General 0 13th February 2009 06:26 AM
looking for good ipfw resources dk_netsvil General software and network 0 15th August 2008 04:05 PM
ipfw rules not behaving Weaseal FreeBSD Security 5 13th August 2008 01:22 PM
A P2P controlling tool at last - ipfw-classifyd s0xxx FreeBSD Ports and Packages 0 3rd August 2008 09:49 AM
ipfw question Johnny2Bad FreeBSD General 2 21st May 2008 12:16 AM

All times are GMT. The time now is 12:27 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick