LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-24-2005, 04:56 PM   #1
bratch
Member
 
Registered: Nov 2004
Location: Jersey, British Isles
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
Stop forwarding to certain machine


I use this code:

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain

# Set up IP FORWARDing and Masquerading
iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT


To share a net connection across my network, but what I'd like to do is be able to stop the net being forwarded to an individual machine, (just temporarily), from the server.

How can I do this? I assume it is some sort of iptables command...
 
Old 03-24-2005, 06:18 PM   #2
skaven
LQ Newbie
 
Registered: Mar 2005
Location: College Station, TX
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Unfortunately I'm not a master of iptables straight, but I've found that IPKungFu (http://www.linuxkungfu.org) makes doing stuff like this incredibly easy. Plus it sets up some good firewalling rules so that you don't leave yourself wide open while you're on the net.
 
  


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
How do I get cron mail to stop forwarding through localhost on CentOS 4? alexmkt Linux - Enterprise 3 11-23-2005 01:27 PM
How do I stop vboxd (answering machine)? branch Linux - Newbie 6 11-20-2004 07:39 PM
Port forwarding to RH 9.0 machine not working Jeeves79 Linux - Networking 3 05-29-2004 03:11 PM
stop forwarding packet after checking the message sent from PC 1 to PC 3 through PC@ becky_starr Programming 3 02-14-2004 11:02 PM
port forwarding to win 2k machine. Morphey Linux - Networking 0 03-30-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:33 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