[LARTC] routing with 2.4 kernel

Linux Advanced Routing and Traffic Control

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

 



Hello

I am new with 2.4 kernel an have trouble to setup routing as I had in
2.2 kernel:

My setup:

server1  eth0:200.47.43.240   (FTP SERVER)

server2  eth0: 200.47.43.241  (MASQ BOX)
         eth1:  10.2.0.1

client1:       10.2.0.2
client2:       10.2.0.3
clientN:       10.2.0.nnn

I want to clients 10.2.0.0/16 connect to my FTP server with 10.2 IP (no
internet IP).
200.47.43.240 is a linux 2.2 kernel, it already have a right setup for
routing to 10.2.0.0/16 clients, I have trouble with 200.47.43.241
(linux 2.4).

My actual setup: (in 200.47.43.241)
iptables -A FORWARD -s 10.2.0.0/16  -d 200.47.43.240 -j ACCEPT //it
doesn't work)
iptables -t nat -A POSTROUTING  -s 10.2.0.0/16  -j MASQUERADE

-- 
Saludos,
 Fabian Gervan




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux