LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-05-2008, 01:42 PM   #1
wminzlaff
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Unbuntu 8.10 -- IPTABLES ISSUE


After enabling the basic iptables rules to function as a NAT I lose my internet on the server machine.

$sudo iptables -A FORWARD -i eth0 -o eth1 -s 192.168.0.0/24 -m state -- state NEW -j ACCEPT
$sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
$sudo iptables -A POSTROUTING -t nat -j MASQUERADE
$sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"


Example: sudo apt-get update

won't connect
however clients access the iternet just fine

i tired "sudo iptables -F"

this disables the clients but still can't access internet with the server

what am i doing wrong?
do i need an additional rule to allow the server to access 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
iptables issue pushpraj Linux - Networking 2 12-04-2008 09:08 AM
Issue with iptables SentralOrigin Linux - Networking 6 07-14-2007 03:42 PM
Strange IPTABLES issue TheLinuxDuck Linux - Security 5 04-27-2005 07:44 AM
iptables issue rkemp Linux - Networking 3 11-29-2003 06:50 PM
iptables issue f1uke Linux - Security 3 08-11-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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