Networking Forums

Networking Forums > Computer Networking > Linux Networking > ip forwarding and iptables

Reply
Thread Tools Display Modes

ip forwarding and iptables

 
 
Angel Tsankov
Guest
Posts: n/a

 
      05-15-2006, 07:16 PM
I have 2 PCs: one configured as gateway (PC1) and the other one (PC2) configured to use PC1 as gateway. PC1 runs a custom linux
distribution. It has ip forwarding enabled (e.g. by echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf).
As far as I understand, I do not need to do anything else to make the kernel route traffic to and from PC2, right?
However, if I have one PC more - PC3, and I do not wnat to route traffic to and from it I need to configure the kernel, e.g. with
the help of iptables. Now if I do so, i.e. use iptables to configure the kernel, save the iptables configuration, setup the system
to reload it at startup (using the init.d scripts), is there any moment (during system startup) when ip forwarding has been enabled
but the iptables configuration has not yet been loaded and traffic could be routed to and from PC3?

 
Reply With Quote
 
 
 
 
Robert
Guest
Posts: n/a

 
      05-17-2006, 01:01 AM
On Mon, 15 May 2006 22:16:56 +0300, Angel Tsankov wrote:

> I have 2 PCs: one configured as gateway (PC1) and the other one (PC2) configured to use PC1 as gateway. PC1 runs a custom linux
> distribution. It has ip forwarding enabled (e.g. by echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf).
> As far as I understand, I do not need to do anything else to make the kernel route traffic to and from PC2, right?
> However, if I have one PC more - PC3, and I do not wnat to route traffic to and from it I need to configure the kernel, e.g. with
> the help of iptables. Now if I do so, i.e. use iptables to configure the kernel, save the iptables configuration, setup the system
> to reload it at startup (using the init.d scripts), is there any moment (during system startup) when ip forwarding has been enabled
> but the iptables configuration has not yet been loaded and traffic could be routed to and from PC3?


Check your rc#.d dir for the order that things are started. normally
iptables is started before the network interfaces are.


--

Regards
Robert

Smile... it increases your face value!


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
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
Forwarding with iptables crancran@gmail.com Linux Networking 0 02-18-2006 03:56 PM
iptables port forwarding anonymous Linux Networking 1 01-22-2004 09:25 AM
iptables port forwarding Jason Lee Linux Networking 4 10-13-2003 12:53 AM
port forwarding with iptables Allan Bruce Linux Networking 9 09-24-2003 04:31 PM
Port Forwarding with iptables Allan Bruce Linux Networking 0 08-27-2003 11:44 AM



1 2 3 4 5 6 7 8 9 10 11