LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2005, 02:00 PM   #1
TiCkO
Member
 
Registered: Oct 2003
Location: Slovenija
Distribution: Slackware 9.1
Posts: 36

Rep: Reputation: 15
sharing conection (iptables) problem


Hello

I have one new problem about iptables, and making router.

I use Slackware 10.0 with 2.6.10 kernel.
And i make a script, with iptables info and that stuff.

I have modem pluged in eth0, and eth1 is connected with secound box with windows XP

And when i use this command:

iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE

IPTABLES --APPEND foward --in-interface eth0 -j ACCEPT

computer say this:

iptables: No chain/target/match by that name

Why? i have installed slackware full, extcepts X server, because this computer is used for server. I have used 2.4.26 kernel, and i think the problem is kernel, but then i was compiled 2.6.10 and the problem is still there...

for this:
echo 1 > /proc/sys/net/ipv4/ip_foward - it bring up the error, like file is missing, but this file is there..

What the hell is wrong? Thanks for answers, and sorry for my bad english
 
Old 01-13-2005, 02:30 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,152

Rep: Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350
I can't tell if this is just a typo or you actually misspelled while entering the command but forward needs to be capitalized:
The same rule shortened:
iptables -A FORWARD -i eth0 -j ACCEPT

Same goes for the following, misspelled forward.
echo 1 > /proc/sys/net/ipv4/ip_forward

Last edited by michaelk; 01-13-2005 at 02:31 PM.
 
  


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
Help Sharing Conection with WinXp And Redhat 9.0 well, there is Linux - Networking 2 07-24-2004 03:08 PM
internet conection sharing with cable modem anorman Linux - Networking 1 07-21-2004 11:49 PM
mysql conection problem sy-co Mandriva 8 06-18-2004 08:26 AM
Internet Conection Sharing soulsniper Linux - Networking 6 07-12-2003 09:59 AM
Internet conection sharing sqn Linux - Networking 1 03-18-2003 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:51 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
Open Source Consulting | Domain Registration