IPFW (IPFIREWALL) is a FreeBSD sponsored firewall software application authored and maintained by FreeBSD volunteer staff members.
Questions tagged [ipfw]
28 questions
14
votes
1 answer
How to convert “ipfw” to “pfctl” commands to forward port 80 and 443 in OS X?
I found a way to forward ports 80 and 443 to other arbitrary ports (3000 and 3001 in my case) using ipfw. But ipfw is deprecated and replaced by pfctl. Here are my ipfw declarations:
sudo ipfw flush
sudo ipfw add 100 fwd 127.0.0.1,3000 tcp from any…
Robert Audi
- 375
6
votes
2 answers
Simulating network latency for localhost connection on Windows 7
I need to simulate network latency to a program running on the local computer, connecting to a local service. Thus far I have tried dummynet (a windows build of ipfw) which I got working after some trial and error. While it generally works, I can't…
nitro2k01
- 2,461
6
votes
2 answers
Port Redirection on Mac OS X Lion
I have tried to solve this issue using pf but with no luck. Basically, I am trying to redirect incoming port 443 traffic to port 22. I have tried to set up a rule in a file and load it in pf but I get syntax error. Can anyone with more experience…
Andreas
- 71
5
votes
1 answer
limiting upload bandwidth in Mac OS X Yosemite (10.10)
I have ADSL internet, and when there is an application uploading to the Internet at full speed (e.g. Skype or Chrome during file uploads), the download bandwidth becomes very very slow. Meaning I cannot practically browse webpages during uploads and…
psmith
- 535
5
votes
3 answers
How to route traffic from VM (Parallels) over an Open VPN connection on the host (OS X)
Scenario:
I have a Mac running Lion that is connected to an OpenVPN server
I have a Windows XP VM (running on parallels, but I don't think this is important)
I want to be able to route traffic from the XP VM via the host Mac's OpenVPN connection so…
withakay
- 441
4
votes
1 answer
How to set up a static route to allow PS Vita remote play to PS3 through a second router?
I'm trying to get my PS Vita to connect to my PS3 through my home network rather than the PS3's wireless access point (mainly because of the PS3's weak signal). My Mac (OS X 10.8.2) is sharing its internet connection from en0 (ethernet) to en1…
SOBA
- 41
3
votes
1 answer
Can I use TCP as DNS query protocol on Mac OS?
I'm using Mac OS, Snow Leopard 10.6.2, and I'm suffering from UDP packet loss during DNS query. So my web browser is too slow to surf internet nicely. But it worked very well when I tried a DNS query on TCP using dig command.
However, I can't find…
Brian
3
votes
1 answer
How to forward traffic out via a non-default interface?
I have a fairly vanilla home LAN with an Internet provider-supplied router providing DHCP. The router uses many of its default settings unmodified. The home network is 192.168.1.0/24 and the router itself is known internally as 192.168.1.1.
I need…
Mikhail T.
- 784
3
votes
3 answers
Dummynet / ipfw error installing on Windows 10 x64
The following error is returned when trying to install netipfw.inf to my network adapter:
"Could not add the requested feature. The error is: 0xE000022F"
What does this mean, and how could I fix it? I am using the latest Dummynet Windows x64…
MrTod
- 53
2
votes
1 answer
How to stop sending RST to specific IP
I want to stop sending RST to specific IP(192.168.56.101) on Mac OS X.
I enter this command. But it still send RST.
sudo ipfw add drop tcp from 192.168.56.1 to 192.168.56.101 in tcpflags rst
What do I change this command?
uyreee
- 21
2
votes
1 answer
How to apply ipfw rules to domains that resolves to multiple IPs?
Suppose I wanted to use ipfw to throttle uploads to youtube. The uploads are made to upload.youtube.com but this domain resolves into multiple different IPs (which also appear to change over time).
Trying to create a rule for the domain results…
GJ.
- 10,151
2
votes
2 answers
OSX: Mimic Ubuntu IP Masquerading via iptables with ipfw
Good day,
I am attempting to replicate a setup I have between a router and an Ubuntu PC, and have the same setup working on my MacBook (10.6, Snow Leopard).
First, I have a router that has a USB port. When I plug it into my Ubuntu PC, it creates an…
Cloud
- 551
2
votes
1 answer
pfctl divert-socket in mac os?
I'm messing with divert sockets in OSX, and in order to capture any socket, I first need to set up a firewall redirection (divertion if you will):
ipfw add divert 3282 tcp from any to any
Something like that, however "ipfw" is deprecated, and…
toti
- 121
2
votes
1 answer
Whitelist websites for specific user on linux?
Due to a child protection and safeguarding issue, I want to set up a restricted or limited account for a tech-savvy teenager to use. I would like to whitelist only specific websites (e.g. iPlayer and Netflix since there's no TV in the house) for…
DMCoding
- 233
1
vote
1 answer
How to elegantly selectively exclude FreeBSD network traffic from OpenVPN interface by port
inexperienced sysadmin here.
I'm planning on running a net daemon inside a FreeBSD jail through OpenVPN, but want to be able to SSH directly into the jail and use the daemon's web interface daemon without going through the VPN. As I understand it,…