All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux Router
@ 2005-02-06 17:36 spdesai
  2005-02-06 19:46 ` Jason Opperisano
  2005-02-07 20:43 ` srg
  0 siblings, 2 replies; 11+ messages in thread
From: spdesai @ 2005-02-06 17:36 UTC (permalink / raw)
  To: netfilter



Hi

I have one linux machine with two NIC cards. One is connected to internet and 
one is private PC. Below is my IP configuration

eth0: Valid IP: xxx.xxx.xxx.68
      Mask: 255.255.255.192
      Gateway: xxx.xxx.xxx.65  

eth1: Invalid IP: 192.168.1.1
       Mask : 255.255.255.0
      Gateway: xxx.xxx.xxx.65 


Now when i connect eth1 to window machine. i can ping up to eth0 valid ip i.e 
xxx.xxx.xxx.68 but could not ping xxx.xxx.xxx.65 which is gateway ip of linux.

I have enable ip_forward to 1 in linux machine.

My window machine ip is: 
IP: 192.168.1.2
Mask:255.255.255.0
GW: 192.168.1.1

Pl. give me the solution so i can ping xxx.xxx.xxx.65 from my window machine.

Thanks in advance

suhag.



-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Linux Router
@ 2007-09-22 23:09 Carlos Narváez
  2007-09-23  2:10 ` ben soo
  2007-09-23  6:39 ` Benny Amorsen
  0 siblings, 2 replies; 11+ messages in thread
From: Carlos Narváez @ 2007-09-22 23:09 UTC (permalink / raw)
  To: linux-kernel

 This is starting to frustrate me, because it should be much simpler
than it seems to be, and I feel like I'm missing something small and
obvious.

I have two private networks, we'll say 192.168.254.0/24 and
192.168.251.0/24. And I have a linux box in the middle with addresses
192.168.254.17 and 192.168.251.10:


+---------------+ . +----------------+
¦ 192.168.251.1 +---+ 192.168.251.10 ¦ . +----------------+
+---------------+ . ¦ 192.168.254.17 +---+ 192.168.254.16 ¦
. . . . . . . . . . +----------------+ . +----------------+


There is no NAT involved.. I just want the box in the middle to pass
traffic between the two networks. Here is what I have done:

- IP Forwarding has been enabled on the router via "echo 1 >
/proc/sys/net/ipv4/ip_forward"

- A route has been configured on 192.168.251.1 to point all traffic
for 192.168.254.0/24 to 192.168.251.10.

- A route has been configured on 192.168.254.16 to point all traffic
for 192.168.251.0/24 to 192.168.254.17.

- The command "iptables -I FORWARD -j ACCEPT" has been executed.

Now.. here's what happens. 192.168.251.10 can ping both interfaces on
the router. 192.168.254.16 can also ping both interfaces on the
router. However, 192.168.251.1 cannot ping 192.168.254.16, and
likewise, 192.168.254.16 cannot ping 192.168.251.1.

What have I forgotten?

-- 
Carlos Narváez
http://www.juegopixel.com

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <F4D3DB9A18752A4F99FD880ABC5407179D136B@ccdc-exchg.careerco mmunity.com>]
* Linux router
@ 2002-05-20 10:59 Sridhar J
  2002-05-20 20:38 ` Petre Bandac
  2002-05-21  0:57 ` Vince Coen
  0 siblings, 2 replies; 11+ messages in thread
From: Sridhar J @ 2002-05-20 10:59 UTC (permalink / raw)
  To: linux-newbie

Hello

I have an old Cyrix system that I would like to turn into a router-firewall
and put it before my Webserver. I would alos like to have my IDS running on
this. No other service should run on this. No apps, nothing.

How do I go about it? What distro should I choose? What files do I have to
edit to make these changes?

Regards
Sridhar
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-09-23  6:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-06 17:36 Linux Router spdesai
2005-02-06 19:46 ` Jason Opperisano
2005-02-07 20:43 ` srg
  -- strict thread matches above, loose matches on Subject: below --
2007-09-22 23:09 Carlos Narváez
2007-09-23  2:10 ` ben soo
2007-09-23  6:25   ` Jan Engelhardt
2007-09-23  6:39 ` Benny Amorsen
     [not found] <F4D3DB9A18752A4F99FD880ABC5407179D136B@ccdc-exchg.careerco mmunity.com>
2002-05-20 17:49 ` Linux router Ray Olszewski
2002-05-20 10:59 Sridhar J
2002-05-20 20:38 ` Petre Bandac
2002-05-21  0:57 ` Vince Coen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.