LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-08-2003, 07:20 PM   #1
|Drakehash|
LQ Newbie
 
Registered: May 2003
Posts: 23

Rep: Reputation: 15
Help with iptables


In a howto i found this:

iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

This is for nat(of course).

I have some questions about this:

I have 4 ethernet cards in 1 machine, 2 with real ip (each one with 100mbit conection) (eth2 and eth3) and 2 with private networks with class C 192.168.1.0 and 192.168.2.0 (eth0 and eth1)

I want :

1.- one machine in the 192.168.1.0 network (host 192.168.1.4) use eth2.

2.- 2 machines in 192.168.2.0 use eth2.

3.- al other machines left in networks 192.168.2.0 and 192.168.1.0 use eth3.

Making normal routes no work.

I made the conclusion that is only with iptables, how i can do that?

thankz.-
 
Old 08-08-2003, 08:31 PM   #2
|Drakehash|
LQ Newbie
 
Registered: May 2003
Posts: 23

Original Poster
Rep: Reputation: 15
no one?
 
  


Reply



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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

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

All times are GMT -5. The time now is 01:43 AM.

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