Skip to content

Instantly share code, notes, and snippets.

@ericlaw1979
Last active January 2, 2019 20:43
Show Gist options
  • Save ericlaw1979/853fcf894b71dd65ed7ed37499b786d9 to your computer and use it in GitHub Desktop.
Save ericlaw1979/853fcf894b71dd65ed7ed37499b786d9 to your computer and use it in GitHub Desktop.
Sets the Egress IP to the specified IP address to force outbound traffic over a particular interface. Add to Fiddler's Rules file.
// TODO: Customize Menu items names and IP values to match your system.
QuickLinkMenu("E&gress")
QuickLinkItem("Modem", "192.168.2.1")
QuickLinkItem("Cell", "123.13.13.2")
QuickLinkItem("(default)", "")
public static function DoEgressMenu(sText: String, sAction: String)
{
FiddlerApplication.Prefs.SetStringPref("fiddler.network.egress.IP", sAction);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment