LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 12-08-2004, 07:32 PM   #1
shmude
Member
 
Registered: Aug 2003
Distribution: Fedora, DSL, LAS, Knoppix
Posts: 83

Rep: Reputation: 15
OSX ip.forwarding


Just got my first Mac. It is a powerbook with OSX 10.3 on it. Im trying to make the ip_forward function work just like ive been able to do with my other laptops and any version of linux i've ran. I soon found out that the command to enable the ip fowarding feature is "sudo sysctl -w net.inet.ip.forwarding=1" but it doesn't seem to work like im used to. I have the laptop (192.168.1.107) connected to my network with a linksys router (192.168.1.1) and a XP desktop (192.168.1.100). I set the default gateway of the desktop to the ip of the laptop and am trying to get the laptop to farward any packet it receives that isn't for itself to be farwarded to the router....i think that makes sence...if not i'll try to re-word it.

what am i missing...is a firewall blocking it? i have the firewall disabled in the gui. And this is a fresh install.
 
Old 12-09-2004, 06:50 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
How are you connecting the desktop and laptop? If they're all connected to the same switch, the Mac laptop is probably just issuing ICMP redirect packets back to the PC desktop since it can reach the gateway on it's own. If you have an additional network card, then how did you set that up?
 
Old 12-09-2004, 09:26 PM   #3
shmude
Member
 
Registered: Aug 2003
Distribution: Fedora, DSL, LAS, Knoppix
Posts: 83

Original Poster
Rep: Reputation: 15
All the systems are connected through the same switch. There is only one nic in the mac. Is there a way around the ICMP redirect packets, this was so easy to do with linux, i can't imagin that it cant be done. The PC could access the gateway on its own, but i want to route the info through the mac so that i can play with tools like snort without having to have a hub between, or haveing two nics. I can't install linux on the PC because of work related programs that need windows. anyway to do this with a mac?
 
  


Reply



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
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
Gentoo-OSX jtshaw Other *NIX 1 02-24-2005 02:22 PM
Linux to look like OSX Dirty_Ink Linux - Software 8 05-06-2004 10:16 PM
Osx jsul255227 Linux - General 15 07-15-2003 12:10 PM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 08:45 AM.

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
Open Source Consulting | Domain Registration