LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 06-30-2005, 12:41 AM   #1
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
Private Ip's on the net??


Hello all my isp is saying that my local lan ip 's are requesting the internet

here is my configuration

Redhat9


/sbin/iptables -t nat -A POSTROUTING -s 172.16.100.0/16 -o eth1 -j MASQUERADE

my ipv4 forwarding is set to 1 at /etc/sysctl.conf

My iptables chains are set accept policy.What may be wrong.But Still i am able to surf the internet. and one more thing how do i know that my private ip are going outside.

Thanx
 
Old 06-30-2005, 10:01 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,502
Blog Entries: 1

Rep: Reputation: 67
Well... I wouldn't check for source address in that line, just the output device:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

If you left it like that, then If I connected to your lan not in that address segment, (and supposing your router could route traffic to my host), it could be possible for me to get traffic with lan's address to the internet (cause I wouldn't match that rule).
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 12:23 PM
how to halt a system with private ip from a system in other net work seabark99 Linux - Networking 3 03-20-2005 08:36 AM
private net on a rack captain_obvious Linux - Networking 1 05-20-2004 11:13 AM
Problem with Private IP's on webserver medamorg Linux - Networking 6 03-13-2002 03:37 AM
Package collusions on the private net Revenger Linux - Networking 1 08-16-2001 06:45 PM


All times are GMT -5. The time now is 01:13 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration