I would like to block ports and network traffic when using my jailbroken iOS device as a Personal Hotspot.
The reason is I don't want my backup program, computer updates, or any high bandwidth usage applications to be able to download or upload too much data.
Is there a way to do that using iOS itself or an application?
Best Answer
For outgoing connections, the only jailbreak application that exists is Firewall iP. It behaves similarly to the Mac OS X application Little Snitch.
For incoming connections, you will have to use a regular firewall system such as
ipfw
.Disclaimer: To anyone actually looking to use
ipfw
on iOS, you're going to have to patch the kernel to include support forpf
. Documented, nobody has ever done it, but it's not technically impossible. The jailbreak itself patches the kernel upon boot, so this would require the same exploits used during that process. If you have happened to patchpf
into the kernel, then proceed with my original answer below.Add the
http://theworm.altervista.org/cydia/
repository inCydia > Manage > Sources > Edit > Add
. Then install theMTerminal
app from the BigBoss repository and thenetwork-cmds
package from The Worm repository. Then you can go into the terminal app you just got and runipfw
. This will let you write to your firewall tables. If you need a tutorial on how to useipfw
, there's a good one here.