LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2004, 02:17 AM   #1
aylov
LQ Newbie
 
Registered: Oct 2004
Location: BG
Posts: 19

Rep: Reputation: 0
iptables - is it possible?


I have 2 networks - 10.2.0.0 and private 192.168.1.0. My Gateway is 10.2.0.1 and I want private network to be visible for 10.2.0.0. Is it possible with iptables (not VPN) ?
 
Old 10-21-2004, 03:38 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
If the gateway, or another box is setup as a router between these 2 networks, yes.
 
Old 10-21-2004, 04:39 AM   #3
aylov
LQ Newbie
 
Registered: Oct 2004
Location: BG
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Demonbane
If the gateway, or another box is setup as a router between these 2 networks, yes.
Yes 10.2.0.1 is a router between these 2 networks.
How will look iptables rule, that do this?
 
Old 10-21-2004, 08:45 AM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
echo "1" > /proc/sys/net/ipv4/ip_forward

and make sure forward policy is on ACCEPT(unless you want to fine tune)
/sbin/iptables -P FORWARD ACCEPT

hosts on 192.168.1.0 should use the 192.168.1.x interface of the gateway machine as their gateway.

That's about it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 03:18 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration