On 03/21/2013 07:25 AM, [email protected] wrote: > Hi > > I'm just getting started doing my own firewall and using Shorewall. > > When I look at examples in "raw" iptables code I can see how to do > inbound-only and outbound-only rules. > > I'd use > > iptables -i eth0 ... > > or > > iptables -o eth0 ... > > How do you do the same thing in Shorewall? > > I'm not sure just looking at the columns in the "rules" file > > #ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ MARK > CONNLIMIT TIME HEADERS SWITCH HELPER > # PORT PORT(S) DEST LIMIT GROUP > > So for example if I want to block ONLY outbound traffic with DEST PORT = > 10, and SOURCE PORT = 20 crossing eth0 but allow inbound > what's the format for the rule? > > Sorry if I'm missing something obvious. :-/
I suggest that you go to http://www.shorewall.net/GettingStarted.html and select the QuickStart Guide that fits your requirements. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
