NAT in PiTFT kernel

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: NAT in PiTFT kernel

Post by adafruit_support_mike »

Hmm.. I just checked `lsmod | grep nat` on a RasPi running the preconfigured PiTFT image and didn't get any results. The output of the same command on a RasPi set up for networking shows a chain of dependent NAT modules.

I'll check with the team that built the image.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: NAT in PiTFT kernel

Post by adafruit2 »

Oof We didn't think to activate NAT in the PiTFT kernel. :(

We'll put it on our todo list for a new kernel. There's no ETA but a couple issues are building up so we will try to get something out in the next couple weeks.

User avatar
GregRob
 
Posts: 12
Joined: Mon May 05, 2014 9:34 pm

Re: NAT in PiTFT kernel

Post by GregRob »

It looks like the new kernel fixes the problem!

I did the following on the machine running the old kernel:
wget http://adafru.it/pitftsh
mv pitftsh pitft.sh
chmod +x pitft.sh
sudo ./pitft.sh -t 28r -r


After the long install and answering a couple questions at the end I then rebooted the Pi. Once it came back up I get the following positive results:
~ $ sudo find / -name iptable_nat
/sys/module/ip_tables/holders/iptable_nat
/sys/module/nf_nat/holders/iptable_nat
/sys/module/nf_nat_ipv4/holders/iptable_nat
/sys/module/nf_conntrack/holders/iptable_nat
/sys/module/iptable_nat
~ $ sudo iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- 0.0.0.0/0 192.168.5.1 tcp dpt:22 to::2222

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: NAT in PiTFT kernel

Post by adafruit_support_mike »

Good to hear!

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”