LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-02-2020, 10:07 AM   #1
zox2005
LQ Newbie
 
Registered: May 2020
Posts: 3

Rep: Reputation: Disabled
Traffic from one interface to another (wlp3s0b1 > ppp0) on port 8080 and 5000


I searched a lot for a solution and found 50 similar questions. I have tried most of them but could not make this work.

In short:

Wireless interface (192.168.0.18) - internet
3G dongle interface (10.222.134.9) - private network

I can access java app (tomcat) via 127.0.0.1:8080 or 192.168.0.18:8080 and it works, but i need requests from java app go thru the 3G dongle (ppp0).

Java app scan / read other devices via port 5000 on same network like ppp0 (IP Addresses 10.222.134.2 - 10.222.134.50)

This all works if I disconnect my wifi network, but when I connect to wifi it all stops working because 192.168.0.18 can't reach devices from IP Addresses 10.222.134.2 - 10.222.134.50
 
Old 05-02-2020, 04:23 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Did you enable ip forwarding? You may wish to create a firewall rule that allows access just to the desired network masks.
 
  


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
nftables, how to redirect all traffic to port 8080 to another ip andros705 Linux - Newbie 0 09-04-2017 03:48 AM
iptables: redirect port 8080 to 81 and block port 8080 robertjinx Linux - Server 9 09-30-2016 03:29 PM
I don't understand this line ->>> delay_parameters 2 5000/150000 5000/120000 manalisharmabe Linux - Newbie 6 05-17-2011 06:27 AM
access 8080 web server port through squid running on 8080 sunethj Linux - Networking 11 05-18-2007 02:38 AM
debian iptables squid - redirect port 80 to port 8080 on another machine nickleus Linux - Networking 1 08-17-2006 12:59 AM

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

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