Main
Ocelot Stuff
Wolf Stuff
Recipes
Humor
Walkthroughs
About Us
  Log in

Misc. Info Database

 

 

How to Setup a Shogo MAD Server BEHIND an ipchains/ipmasqadm (Author: kevin)

Here are the steps to forward a shogo server through an IPCHAINS firewall.

  1. Select a port (let's say 12345.)
  2. Set the rules to accept these ports.
    # MY EXTERNAL I/F ADDRESS:
    $EXT=123.123.123.123/255.255.255.248
    # ALLOW TCP TRAFFIC:
    ipchains -A input -i eth1 -p TCP -s 0/0 -d $EXT 12345 -j ACCEPT
    # ALLOW UDP TRAFFIC:
    ipchains -A input -i eth1 -p UDP -s 0/0 -d $EXT 12345 -j ACCEPT
    
  3. Now set the rules to forward them:
    # FIRST, CLEAR THE portfw RULES.
    /usr/sbin/ipmasqadm portfw -f
    # NOW FORWARD TCP TRAFFIC:
    /usr/sbin/ipmasqadm portfw -a -P tcp -L 64.220.136.26 12345 -R 192.168.1.3 12345
    # AND UDP TRAFFIC:
    /usr/sbin/ipmasqadm portfw -a -P udp -L 64.220.136.26 12345 -R 192.168.1.3 12345
    

New

home | ocelot | wolf | recipes | guitar chords | humor | walkthroughs | about | privacy | contact | Site Map | MetSecTech
49721 hits for this section SingleSignOn Copyright 2004-2009 Kevin and Erin Metcalf. All rights reserved.