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
0
votes
2 answers

ipfw resetting after reboot

I added a rule in my ipfw a time ago and now I want to delete it. So i go: sudo ipfw flush And all user rules gets deleted. But everytime i restart the machine the rule is back again! I tried looking for some ipfw config file, but has not find…
oskob
  • 1
  • 1
0
votes
0 answers

At what layer of the OSI model does ipfw works?

Clearly, when I use iptables to drop packets in output of a sender A, the TCP instance of A re-send them because it never gets ACK from the receiver B of those lost packets. In the end, depending on the probability of drop (>0), all data from A…
Lili_marston
  • 149
  • 1
  • 12
0
votes
1 answer

Dummynet does not match on flows

I have two machines as shown below: To internet<---->PC_A<----->PC_B PC_A has two interfaces (one connected to internet and other to PC_B). PC_B has to go through PC_A to connect to the Internet. I run Dummynet on PC_A. PC_A has IP 192.168.1.1 on…
jamie
  • 89
  • 4
  • 11
0
votes
1 answer

How to simulate bandwidth and delay in localhost with dummynet (ipfw)

I am using a web server in localhost:8080 and I'm trying to use dummynet (ipfw) to simulate latency and low bandwidth to that server but somehow I cannot get it to work. When I use the command sudo ipfw add pipe 1 all from any to any sudo ipfw pipe…
Hải Phong
  • 5,094
  • 6
  • 31
  • 49
0
votes
1 answer

ipfw (Dummynet) cannot configure queue size for pipe

I'm trying to use Dummynet (ipfw pipe) for simulating network switch. My platform is Linux CentOS 6.4 Final I have downloaded and compiled the latest version of source code (20130607) from here. I'm trying to add pipe for relaying ip traffic between…
hanvari
  • 111
  • 1
  • 7
0
votes
1 answer

Why IPPROTO_DIVERT in C stop working after a few tests?

I am developing an application (got the code from here) to show the content of network packets in OS X using C and here is my code: /* open a divert socket */ fd=socket(AF_INET, SOCK_RAW, IPPROTO_DIVERT); if (fd==-1) { fprintf(stderr,"We could…
mjan635
  • 82
  • 10
0
votes
1 answer

IPFW - Ruleset by default

I'm trying to set a IPFW as open by default, so I do firewall_type="open", but when I do "ipfw flush", it only adds a "deny ip any from any" rule. Should it be "allow ip any from any"? I mean, If I flush the rules, should it be set only as the…
Cod1ngFree
  • 1,873
  • 6
  • 21
  • 33
0
votes
1 answer

Can't connect to internet after installing dummynet ipfw in Windows 8.1

Recently i just finished installing dummynet ipfw in Windows 8.1. I need to deactivate digital siganture requirements before able to install it. But after install it, desktop shows Test Mode 9600 on corner right down of desktop. After i removed it…
user3097141
  • 11
  • 1
  • 1
  • 3
0
votes
1 answer

FREEBSD IPFW - Add/Remove rule

Thank you for existing and making my life easier :). I need your help, please. I need to create a putty function to work like this. A command in putty: ipfw addip [IP] This will add in /etc/rules.ipfw the following line: $IPF 460 allow all from…
Rares Daniel
  • 3
  • 1
  • 2
0
votes
1 answer

Equivalent commands for (ipfw) in OS X taken from (iptables)

I was using it on my DD-WRT router. I need to increase incoming/outgoing TTL from 1 to 128. How to use this commands in OS X using (ipfw)? iptables -t mangle -I PREROUTING -i `get_wanface` -j TTL --ttl-set 128 iptables -t mangle -I POSTROUTING -o…
0
votes
1 answer

Using netsh advfirewall to block URLs in Windows

I know that Windows allow blocking IP addresses through netsh like so: netsh advfirewall firewall add rule name="Block some stuff" dir=in action=block remoteip=xxx.xxx.xxx.xxx enable=yes But is there any way to use netsh (or is there any other…
Parker
  • 8,539
  • 10
  • 69
  • 98
0
votes
1 answer

Does Scapy bypass Dummynet?

Does Scapy bypass Dummynet (IPFW in general)? It really looks like it does. I'm adding a large extra delay to each outgoing and incoming packet, and everything slows down apart from packets sent with Scapy. $ ipfw add pipe 1 from any to any $ ipfw…
Ricky Robinson
  • 21,798
  • 42
  • 129
  • 185
0
votes
0 answers

My programm is root, but only would work if started with sudo

I wrote a little helper tool to feed rules into ipfw and start a dns-server. It does the same as this shell-script: #!/bin/sh # run the dns server ./nin_mdns_osx 127.0.0.1 & ipfw add 27000 fwd 127.0.0.1,53 ip from any to any dst-port 53 ipfw add…
leosok
  • 302
  • 1
  • 5
  • 15
0
votes
2 answers

Read divert sockets in java?

If I was to create a ipfw divert rule to forward all FTP traffic to a specific socket, is it possible to use Java to connect to the socekt and read the packet information? If so, how would i go about reading/writing to the scoket?
abnev
  • 469
  • 1
  • 8
  • 20
0
votes
1 answer

How to setup EC2 internal IP forwarding to External DNS using macos X?

Here the problem, I have two servers on EC2, which have internal/private IPs (10.148.73.230, 10.148.73.231), unfortunately I do not have Elastic IPs available and connect to these servers using External DNS like:…
bigdatarefiner
  • 141
  • 1
  • 7