Questions tagged [ipfw]

ipfw is FreeBSD firewall and is built-in Mac OS X and DragonFly BSD .

ipfw is FreeBSD firewall and is built-in Mac OS X and DragonFly BSD. There are ports available for Linux, OpenWrt and Microsoft Windows.

Wikipedia

47 questions
1
vote
0 answers

dummynet corruption, reordering of package

I am new to dummynet/ipfw and I would like to know if I can do a couple of things using this tool. 1 - I need to make an exception in the pipe of a particular IP but that for all the others if the filters are applied. How could I do this? 2- I need…
Alex
  • 149
  • 2
  • 9
1
vote
2 answers

add custom port forward rule to ipfw on freebsd

Hello I am new tu freebsd I configured my /etc/rc.conf like this: sshd_enable="YES" firewall_enable="YES" firewall_quiet="YES" firewall_type="workstation" firewall_myservices="4711…
marschro
  • 791
  • 8
  • 23
1
vote
1 answer

How to block based on Mac address on FreeBsd? (ipfw firewall)

i have worked on freebsd for a while.I installed ipfw configuration firewall and setup it. I want to filter based on Mac Adress.How can i do?I wrote that but it didn't work. ipfw add 4 allow ip from any to any layer 2 mac-type arp ipfw add 5 deny…
SerefAltindal
  • 339
  • 3
  • 12
1
vote
1 answer

How does bandwidth limiting (with, say, ipfw) work?

I'm interested in making a bandwidth-control utility, and I need to limit outgoing or inbound traffic dynamically. To do this, I could use ipfw pipes, but this creates a dependency on ipfw. How do programs like ipfw control bandwidth, at the syscall…
Yohaï-Eliel Berreby
  • 1,165
  • 3
  • 14
  • 25
1
vote
2 answers

Automate installation of DummyNET Driver using PowerShell

tl;dr trying to automate a driver / adapter binding / adapter service using PowerShell / (Set|Get)-NetAdapterBinding / PnPUtil / nvspbind I've been exploring automating the installation of the dummynet driver on a network adapter on Windows Server…
Linuturk
  • 31
  • 4
1
vote
2 answers

How to add trusted sites to the Application Layer Filter (socket-filter firewall) on Mac OS X using command-line?

I am trying to add trusted sites to Mac OS X's firewall via command-line. I understand that previously, we were able to use ipfw to configure the firewall on a packet level by using port numbers or IPs. In Leopard (10.5) and on, there is a new…
kyue
  • 143
  • 3
  • 8
1
vote
0 answers

Setting up a Mac as a wifi hotspot to run mobile broadband test cases

I need to set up an environment where I can simulate mobile network internet connectivity for iOS and Android devices that don't have mobile data plans. I was thinking that I could use my MAC to set up a wifi hotspot and then use ipfw to throttle…
TJ Kirchner
  • 4,321
  • 6
  • 24
  • 26
1
vote
0 answers

Using ipfw with Apple's Reachability class

Do packet filter rules specified with ipfw affect the working of Apple's Reachability class ? For eg. If I enforce these rules: sudo ipfw add 120 deny tcp from me to www.google.co.in sudo ipfw add 130 deny tcp from www.google.co.in to me and run…
Aditya
  • 39
  • 4
1
vote
2 answers

FreeBSD IPFW add an IP to table

I want to add an IP to a table in IPFW from within a C program. I don't want to call system() as this code has to be as efficient as possible. So basically my question is, can somebody explain how does this work? As there is no API that can be used,…
jimbo
  • 99
  • 1
  • 11
1
vote
0 answers

Traffic shaping on shared internet connection

I'm running OS X Lion, and I'm trying to simulate low bandwidth connection (like 3G, EDGE, etc.) over a shared internet connection to android devices. The application that runs on the android devices talks directly using the local IP with each…
Gil Osher
  • 176
  • 1
  • 5
0
votes
2 answers

Traffic shaping with tc is inaccurate with high bandwidth and delay

I'm using tc with kernel 2.6.38.8 for traffic shaping. Limit bandwidth works, adding delay works, but when shaping both bandwidth with delay, the achieved bandwidth is always much lower than the limit if the limit is >1.5 Mbps or so. Example: tc…
user308917
0
votes
1 answer

IP Address List of URL

In my application , i need to block URL i have done something like that, I believe, i need to execute ipfw rule through Cocoa using NSTask to do so i have integrated STPrivilegedTask But problem i am supplying rule ipfw add 12164 deny tcp from any…
Amitg2k12
  • 3,765
  • 10
  • 48
  • 97
0
votes
1 answer

Where can I find OSX ipfw source code?

I found the source code from a freebsd ftp by I'm not sure it's the code that the OSX version. Also I check apple source code web site but did not find it.
CodeFlakes
  • 3,671
  • 3
  • 25
  • 28
0
votes
0 answers

FreeBSD: redirect some UDP traffic from one port to another

I have some specialized DNS servers running on FreeBSD 11. A few people keep hammering on them and I would like to give them different answers. So I'd like to divert UDP traffic from those hosts from port 53 to port 5300 where a different server is…
0
votes
1 answer

Will Netmap bridging break ipfw rule on FreeBSD

I am working on setup a netmap enabled (high performance bridging firewall). The question is if i am using netmap's bridging tools to bridge em0 and em1, and setup ipfw rules to block some kinds traffic on one em0, will it works? the kernel bridging…