LinuxQuestions.org
Help answer threads with 0 replies.
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 11-25-2005, 11:16 AM   #1
robrecc
Member
 
Registered: Feb 2002
Posts: 50

Rep: Reputation: 15
iptables and linksys router


I have a linksys 4 port router connected to my wan connection. When i start creating my iptable rules which line would make more sense.


$IPT -A INPUT -p tcp --destination-port 22 -j ACCEPT

or


$IPT -A INPUT -s 192.168.1.1 --destination-port 22 -j ACCEPT
 
Old 11-25-2005, 04:34 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Re: iptables and linksys router

Quote:
Originally posted by robrecc
I have a linksys 4 port router connected to my wan connection. When i start creating my iptable rules which line would make more sense.


$IPT -A INPUT -p tcp --destination-port 22 -j ACCEPT

or


$IPT -A INPUT -s 192.168.1.1 --destination-port 22 -j ACCEPT
a mixture of both would make more sense...

Code:
$IPT -A INPUT -p TCP -s 192.168.1.1 --dport 22 -j ACCEPT
 
  


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 linksys router robrecc Linux - Security 1 11-25-2005 12:14 PM
anyone with a linksys router? snutz411 Linux - Networking 6 01-23-2005 10:43 AM
Linksys Router Smokey Linux - Hardware 4 07-13-2004 12:11 AM
Need Help W/ Linksys Router Please cmd Linux - Wireless Networking 1 02-21-2004 11:46 PM
router problem with linksys router scheiße_comp Linux - Networking 10 08-20-2002 10:18 AM

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

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