LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-17-2023, 07:56 PM   #1
end
Member
 
Registered: Aug 2016
Posts: 266

Rep: Reputation: Disabled
more iptables chains in one line


hi

can someone please tell howe to write INPUT OUTPUT FORWARD in one line i know this

Code:
iptables -I INPUT -j OUTPUT
but how to use all chains in one line

Thanks

ok i figur out if i whant use FORWARD next i use -o but howe to use POSTROUTING in same comand

Code:
iptables -I INPUT -j OUTPUT -o FORWARD

Last edited by end; 08-17-2023 at 08:00 PM.
 
Old 08-17-2023, 11:14 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 796

Rep: Reputation: 255Reputation: 255Reputation: 255
You don't. That doesn't make sense. What are you trying to accomplish by doing this?
 
1 members found this post helpful.
Old 08-18-2023, 01:21 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,167

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
see this: https://gist.github.com/virtualstaticvoid/1024546
 
1 members found this post helpful.
Old 08-22-2023, 05:57 AM   #4
end
Member
 
Registered: Aug 2016
Posts: 266

Original Poster
Rep: Reputation: Disabled
I think change ip with this i hear iptables offer comand to change ip
 
  


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
[SOLVED] How to select more than 1 line,copy those selected more than one line,and paste them. shabariv Linux - Newbie 1 02-02-2015 11:51 AM
creation of new iptables chains !!!! gabsik Linux - Security 6 05-25-2006 06:57 PM
How to delete the one of iptables chains? 80mail Linux - Networking 1 12-21-2005 02:16 AM
iptables FLOOD FLAGS and INVALID chains - need another module? MadCactus Linux - Security 3 11-19-2003 08:26 AM
how packets traverse thru iptables chains? hardigunawan Linux - Security 1 01-09-2003 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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