Mac Archive

Redirect one port to another port using iptables

You can easily redirect incoming traffic by inserting rules into PREROUTING chain of the nat table. You can set destination port using the REDIRECT target. Following is the procedure: Use the following for redirecting TCP traffic from one SRC_PORT to DEST_PORT: Use the following for redirecting UDP traffic from one SRC_PORT to DEST_PORT: Use the

How fix app UI while upgrading ios6 to ios7 with a single line of code

A sample application UI in iOS6 A sample application UI in iOS7 before applying the fix given below A sample application UI in iOS7 after applying the fix given below Add following code to viewDidLoad make support for iOS6 and iOS7 for nib and programmatic code: self.edgesForExtendedLayout = UIRectEdgeNone; self.automaticallyAdjustsScrollViewInsets = NO;