LinuxQuestions.org
Visit Jeremy's Blog.
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-29-2015, 08:35 PM   #1
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Rep: Reputation: 32
Gufw Firewall Port Forwarding


Hello

Long time no post. Guess I've had a good run.

I am currently using ubuntu 15.10 as an internet connection sharing machine

ICS has been set up via the 'Edit Connections' and the local network set to 'Shared to other computers'

This works well. I then setup Gufw to allow ports like ssh etc

My issue now is I am trying to forward a port 3389 to 10.42.0.254 (Windows Remote Desktop)

I have changed /etc/ufw/sysctl.conf and uncommented the following

net/ipv4/ip_forward=1
net/ipv6/conf/default/forwarding=1
net/ipv6/conf/all/forwarding=1

Attached is the screenshot on my gufw setup

please note that enp5s0 is my card connected to the internet and enp0s31f6 is my internal network

Any help on this is appreciated!
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2015-11-30 13-32-57.jpg
Views:	358
Size:	212.0 KB
ID:	20172  
 
Old 12-01-2015, 08:35 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Is it working?

https://gist.github.com/kimus/9315140 how to port forward

This thread tells how to get the settings into effect: http://askubuntu.com/questions/66097...rding-with-ufw
 
  


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
Port forwarding issue...or is it firewall ? davepal Linux - Networking 0 09-10-2008 08:29 AM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
SSH port forwarding through a firewall linuxLuser Linux - Networking 1 07-14-2005 11:29 PM
Firewall + port forwarding question tomammon Linux - Security 4 09-27-2004 11:39 PM
firewall port forwarding manthram Linux - Networking 0 04-01-2002 07:08 PM

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

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