LinuxQuestions.org
Help answer threads with 0 replies.
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 07-29-2017, 08:12 AM   #1
ninevolt781
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
Need help setting up openvpn connection sharing. Tun0 --> eth1 --> xbox


I am very new to the Linux networking scene. So I will probably explain things wrong but bear with me, please.
I had to restore my raspbian due to system damage.

what I need is
tun0 --->eth1--->xbox--->internet/xboxlive

So on my RPI, I am running raspbian, keep in mind I did have this working doing Linux tutorial. I also have everything necessary to get this working. Just it is not working now.



devices:
eth0 home network in
eth1 USB-Ethernet adapter, i have used it the system comes with proper drivers
tun0 openvpn

Programs I use at the moment:
openvpn
isc-dhcp-server
unpnd


My current config script file I run.
------

#!/bin/bash

sudo upnpd eth1 tun0

echo 1 > /proc/sys/net/ipv4/ip_forward

sudo iptables -t nat -A POSTROUTING -o tun1 -j MASQUERADE

sudo iptables -A FORWARD -i eth1 -o tun0 -m conntrack --ctstate NEW -j ACCEPT

sysctl net.netfilter.nf_conntrack_acct=1

sudo ifconfig eth1 10.10.0.1 netmask 255.255.255.0

------


------

My isc-dhcp-server config
/etc/dhcp/dhcpd.conf
------

subnet 10.10.0.0 netmask 255.255.255.0 {
range 10.10.0.25 10.10.0.50;
option domain-name-servers 8.8.4.4;
option routers 10.10.0.1;
}
------

the interface is set to eth1.

------
My issue is, after doing all I listed above, i get a flashing orange light, and a solid green light on my adapter. No connection going to the xbox at all.
 
Old 08-04-2017, 06:41 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,001

Rep: Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276
Post the output of 'route' & 'ifconfig' and we'll see what's going on.
 
Old 08-08-2017, 02:41 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The lights probably indicate the speed of the connection.
 
  


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
configuring openvpn with iptables rules (internet connection freezes when tun0 is up) BlackHawk Linux - Networking 11 06-22-2011 01:36 AM
How to set a route for Eth1 (DHCP clients) to reach Tun0 (openvpn server)? CentOS torontob Linux - Networking 2 09-22-2010 01:14 AM
iptables question with OpenVPN (tun0 to tun0 filtering) fang0654 Linux - Server 3 09-30-2009 03:17 AM
Sharing internet connection wifi router -> Fedora 10 -> Xbox 360 biszkhopt Linux - Networking 6 05-26-2009 11:47 AM
sharing wireless connection with xbox verdeboy2k Linux - Wireless Networking 1 11-15-2005 08:55 PM

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

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