LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-29-2018, 06:13 PM   #1
adelphia
LQ Newbie
 
Registered: Aug 2018
Location: tampa bay
Distribution: arch, ubuntu, centos
Posts: 1

Rep: Reputation: Disabled
Unhappy iptables: No chain/target/match by that name.


TLDR;

I can't get IP tables to redirect traffic to a proxy:

Code:
$ sudo iptables -t nat -A PREROUTING -i wlp2s0 -p tcp --dport 80 -j REDIRECT --to-port 8080
[sudo] password for you: 
iptables: No chain/target/match by that name.
------------------

I am trying to write a program to unlock my front door but I need to reverse engineer the API used by the lock's Android app. To that end, I'm following these instructions.

I was able to figure out the correct interface name, but beyond that I really don't know what I'm doing here. Any help is greatly appreciated.
 
Old 08-31-2018, 01:15 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You are trying to add a rule to table nat, chain PREROUTING. All TCP packets going into wlp2s0 with destination port 80 will have their destination port rewritten to 8080.

It might be that there is no nat table and/or no PREROUTING chain in your device. Run iptables -t nat -S to list all chains in the nat table.

Or your version of iptables requires the -m tcp option?

Last edited by berndbausch; 08-31-2018 at 01:25 AM.
 
  


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: No chain/target/match by that name. symeon.mattes Linux - Security 15 09-27-2013 04:25 AM
[SOLVED] iptables: no chain/target/match by that name raducu1605 Linux - Server 3 01-26-2012 04:53 PM
iptables: No chain/target/match by that name secretlydead Linux - Networking 2 04-08-2010 10:42 PM
iptables: No chain/target/match by that name amdy Linux - Networking 2 04-07-2010 11:59 PM
iptables: No chain/target/match by that name qanopus Linux - Networking 6 01-04-2009 09:10 PM

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

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