LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2002, 10:26 AM   #1
jetfreggel
Member
 
Registered: May 2002
Posts: 172

Rep: Reputation: 30
ipchains ---> iptables


hi everyone
is there a way to translate
pchains -A forward -i ppp0 -s 192.168.0.2/0 -j MASQ
to iptables
 
Old 11-10-2002, 01:42 PM   #2
turnip
Member
 
Registered: Jul 2002
Posts: 143

Rep: Reputation: 15
iptables -t nat -A POSTROUTING -i ppp0 -s 192.168.0.0/24 -j MASQUERADE

The 0 netmask isnt valid as far as i know. maybe ipchains does something funny but anyway.

you can change the .0/24 to .1/32 if you only want one ip going out.

Last edited by turnip; 11-10-2002 at 01:46 PM.
 
Old 11-10-2002, 03:05 PM   #3
jetfreggel
Member
 
Registered: May 2002
Posts: 172

Original Poster
Rep: Reputation: 30
thx it worked and after reading the how to's
i knew the true nature of the creature

again thank you for your cooperation
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using ipchains and iptables macburton Linux - Security 8 10-18-2004 02:05 PM
IPCHAINS to IPTABLES slinkyredfoot Linux - Networking 2 05-24-2004 05:33 AM
ipchains and iptables both? puzz_1 Linux - General 7 05-29-2003 04:07 PM
IPCHAINS vs. IPTABLES sancho5 Linux - Networking 5 08-26-2001 08:01 PM
Ipchains vs iptables Vetle Linux - Security 1 08-22-2001 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration