Networking Forums

Networking Forums > Computer Networking > Linux Networking > Q: ipchains

Reply
 
 
Karsten
Guest
Posts: n/a

 
      11-30-2004, 07:00 PM
I have a dsl router on 10.0.0.1

I have attached a machine (RH6 kernel 2.2.5) with two nics to the router

the nic that is attached to the router is 10.0.0.119

the other nic goes into a soho switch and is called 10.0.2.1

connected to the soho switch is machine (FC3) 10.0.2.119

the RH6 machine with the two nics can ping anything

the "last" machine FC3 10.0.2.119 can ping RH6 10.0.2.1 and nothing else

What I need is ipchains to route packets from the Internet through RH6 to
FC3
i.e. from one subnet to the other

router 10.0.0.1 -> switch -> 10.0.0.119 RH6 10.0.2.1 -> switch -> 10.0.2.119

Can anybody help ? I sure hope this is the right and appropriate group ...

:-) karsten at atservice dot com




 
Reply With Quote
 
 
 
 
Jozza
Guest
Posts: n/a

 
      12-01-2004, 12:16 PM


i only have iptables, but, iptables is pretty much the same as ipchains,

check the documents for differences between iptables and ipchains, or get
iptables

//this will enable forwarding

iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

//accept data from established outgoing connections

iptables -A INPUT -i eth0 -m state --state ESTABLISHED -j ACCEPT

where eth0 is the nic on your WAN

//masquerade will make your outgoing ip look like your global IP

iptables -t nat -A POSTROUTING -s 10.0.0.0/16 -j MASQUERADE

//this will enable forwarding for your subnet

iptables -A FORWARD -j ACCEPT -i eth1 -s 10.0.0.0/16

where eth1 is the nic on your LAN

Hope this helps or at least widens the picture.

"Karsten" <(E-Mail Removed)> wrote in message
news:coije5$1hkr$(E-Mail Removed)...
>I have a dsl router on 10.0.0.1
>
> I have attached a machine (RH6 kernel 2.2.5) with two nics to the router
>
> the nic that is attached to the router is 10.0.0.119
>
> the other nic goes into a soho switch and is called 10.0.2.1
>
> connected to the soho switch is machine (FC3) 10.0.2.119
>
> the RH6 machine with the two nics can ping anything
>
> the "last" machine FC3 10.0.2.119 can ping RH6 10.0.2.1 and nothing else
>
> What I need is ipchains to route packets from the Internet through RH6 to
> FC3
> i.e. from one subnet to the other
>
> router 10.0.0.1 -> switch -> 10.0.0.119 RH6 10.0.2.1 -> switch ->
> 10.0.2.119
>
> Can anybody help ? I sure hope this is the right and appropriate group ...
>
> :-) karsten at atservice dot com
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPChains David Linux Networking 1 11-26-2006 06:28 PM
IPChains and IPtables justme Linux Networking 3 06-04-2005 01:51 PM
Generating ipchains command from ipchains -L output. Vitto Linux Networking 4 03-06-2004 06:09 PM
ipchains and nat The Jacobsons Linux Networking 1 09-20-2003 11:05 AM
stop ipchains Doug Holtz Linux Networking 3 07-15-2003 01:21 AM



1 2 3 4 5 6 7 8 9 10 11