Pi2B as a NAT for Playstation 3 (wlan to eth) - Raspberry Pi Forums
hello. i'm familiar networking, , can around bash, i'm not on fiddly details of routing , such in raspbian.
i'm trying configure pi combination media server , router ps3 (the wifi in ps3 on way out). objective moment pi routing correctly. i've been loosely following guide here:
https://rbnrpi.wordpress.com/project-li ... -ready-tv/
(i saw amendment, resetting interface doesn't fix problem. i'm not using dhcp on pi, so...)
current status follows:
device: raspberry pi 2 b edimax wifi dongle
os: raspbian jesse 4.1, (updated , upgraded via apt-get after install nov. 11 2015 image)
use static ips. presently wifi connecting house router correctly, , can ssh , vnc no problems. have ethernet connected ps3 through confirmed-working cable. house router not broadcast ssid , not serve dhcp.
/etc/network/interfaces: /etc/network/iptables file: output running "route" think route should showing 192.168.2.0, there's no entry listed.
ps3 configured follows:
address: 192.168.2.12
netmask: 255.255.255.0
gateway: 192.168.2.1
dns: 192.168.1.1 #this correct. points house router, serves dns
pi connecting internet correctly , can ping , open web pages, etc. however, ps3 not able connect internet. i'm trying resolve without needing download additional software.
can raspbian gurus spot problem or provide further guidance?
i'm trying configure pi combination media server , router ps3 (the wifi in ps3 on way out). objective moment pi routing correctly. i've been loosely following guide here:
https://rbnrpi.wordpress.com/project-li ... -ready-tv/
(i saw amendment, resetting interface doesn't fix problem. i'm not using dhcp on pi, so...)
current status follows:
device: raspberry pi 2 b edimax wifi dongle
os: raspbian jesse 4.1, (updated , upgraded via apt-get after install nov. 11 2015 image)
use static ips. presently wifi connecting house router correctly, , can ssh , vnc no problems. have ethernet connected ps3 through confirmed-working cable. house router not broadcast ssid , not serve dhcp.
/etc/network/interfaces:
code: select all
# interfaces(5) file used ifup(8) , ifdown(8) # please note file written used dhcpcd # static ip, consult /etc/dhcpcd.conf , 'man dhcpcd.conf' # include files /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback iface eth0 inet static address 192.168.2.1 network 192.168.2.0 netmask 255.255.255.0 broadcast 192.168.2.255 gateway 192.168.2.1 allow-hotplug wlan0 iface wlan0 inet static address 192.168.1.42 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameservers 192.168.1.1 wpa-ssid "xxxxxxx" wpa-psk "xxxxxxx" wpa-group ccmp wpa-key-mgmt wpa-psk wpa-scan-ssid 1 wpa-ap-scan 1 wpa-proto rsn wpa-pairwise ccmp pre-up iptables-restore < /etc/network/iptables
code: select all
# generated iptables-save v1.4.21 on thu jan 14 17:23:33 2016 *mangle :prerouting accept [1133:95748] :input accept [1028:82938] :forward accept [0:0] :output accept [743:91764] :postrouting accept [743:91764] commit # completed on thu jan 14 17:23:33 2016 # generated iptables-save v1.4.21 on thu jan 14 17:23:33 2016 *nat :prerouting accept [36:4392] :input accept [0:0] :output accept [20:1520] :postrouting accept [0:0] -a postrouting -o wlan0 -j snat --to-source 192.168.1.42 commit # completed on thu jan 14 17:23:33 2016 # generated iptables-save v1.4.21 on thu jan 14 17:23:33 2016 *filter :input accept [56:3952] :forward accept [0:0] :output accept [52:7072] -a forward -i eth0 -o wlan0 -j accept -a forward -i wlan0 -o eth0 -m state --state related,established -j accept commit # completed on thu jan 14 17:23:33 2016
code: select all
kernel ip routing table destination gateway genmask flags metric ref use iface default xssidxx 0.0.0.0 ug 0 0 0 wlan0 link-local * 255.255.0.0 u 202 0 0 eth0 link-local * 255.255.0.0 u 303 0 0 wlan0 192.168.1.0 * 255.255.255.0 u 0 0 0 wlan0
ps3 configured follows:
address: 192.168.2.12
netmask: 255.255.255.0
gateway: 192.168.2.1
dns: 192.168.1.1 #this correct. points house router, serves dns
pi connecting internet correctly , can ping , open web pages, etc. however, ps3 not able connect internet. i'm trying resolve without needing download additional software.
can raspbian gurus spot problem or provide further guidance?
you've broken rule #1 of raspberry pi networking. changes made raspberrypi-net-mods package don't add static ip addresses /etc/network/interfaces more. add them /etc/dhcpcd.conf
there's thousands of examples on forum how that:
https://www.google.co.uk/search?q=/etc/ ... errypi.org
there's thousands of examples on forum how that:
https://www.google.co.uk/search?q=/etc/ ... errypi.org
raspberrypi
Comments
Post a Comment