[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: FAQ for ipchains?



I just figured port forwading out.  It is different than 2.0.x. I read some of
the HOWTOs and FAQs, but they were either out of date or made no sense.

Once you have the right modules set up in the kernel, it is pretty straight
forward.  Because I am on a ppp connection and have a different IP all the
time, I run it every day. I haven't figured out how make a script that will do
it for me with my new ip.

First I run:
$ ipmasqadm portfw -f
to flush the old rules, then:

$ ipmasqadm portfw -a -P tcp -L 204.244.142.78 8080 -R 192.168.1.50 80
to forward from my ppp ip port 8080 to the internal ip port 80.  If you change
the '8080' to 80, then a browser doesn't have have to specify :8080 when
surfing to your site.

Hope this helps,
Wim.


On 21-Jul-99 ferret@phonewave.net wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> 
> I've checked my system and debian.org (did not seem to find anything
> helpful so far)
> I'm trying to use ipchains under 2.2.10(slink) to enable port forwarding
> into my private network, but I cannot seem to get anything working. I'm
> going so far off my old ipportfw scripts which still work with
> 2.0.36(patched) and the ipmasq script which calls ipchains for me to
> handle masquerading.
> 
> Could someone point me to a specific FAQ or HOWTO that can explain how to
> do what I want?
> 
> - --Ferret no baka
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.3ia
> Charset: noconv
> 
> iQEVAwUBN5X/etZwc6w4vgodAQGn5Af/R9oW4ZCrWILu42GkN7TID4J1Q4ybGGYP
> Jpw/Dsro45cbMn91CRSzTDD6xMo4CMvkaA8m8IRqEPhX8DQx0J2RxBryRZ0SQmIU
> 9y2LcuBLrFDbuBRVqP6+2nx4sS7m+Ui0wQbbHzgB78W/a0JP/AgwfnwV59bfU6JY
> du8K+OGDPw1YkrMTYq0vg9VuIt6/H2a2deYCARst4m04gLNTh742r3KSSFbBwEPv
> YeGIM+BHR81k/PFQ/CTOOzngrh01k98u8VFmGSYOzPPIQzUWx7cTvyGQpvKi4hLy
> mYXspIFXoufahGK3cYTfRhoyVAmSRsNfaLKuFx59uVdWigyWRvQPEw==
> =ASjp
> -----END PGP SIGNATURE-----
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org <
> /dev/null

---------------------------
 Wim Kerkhoff              
 wim@netmaster.ca
 www.canadianhomes.net/wim 
 ICQ: 23284586


Reply to: